Logical display geometry.
More...
#include <environment.hpp>
Logical display geometry.
width and height are in CSS pixels; physical_* are the OS's reported pixel resolution. scale is the device pixel ratio (NSScreen backingScaleFactor / Android density / Windows DPI / 96.0).
◆ height
| float pulp::platform::DisplayInfo::height = 0.0f |
◆ name
| std::string pulp::platform::DisplayInfo::name |
Optional human-readable name (e.g. "Built-in Retina Display").
◆ physical_height
| int pulp::platform::DisplayInfo::physical_height = 0 |
◆ physical_width
| int pulp::platform::DisplayInfo::physical_width = 0 |
◆ refresh_hz
| float pulp::platform::DisplayInfo::refresh_hz = 0.0f |
Refresh rate in Hz. Zero when unknown.
◆ scale
| float pulp::platform::DisplayInfo::scale = 1.0f |
◆ width
| float pulp::platform::DisplayInfo::width = 0.0f |
The documentation for this struct was generated from the following file:
- /home/runner/work/pulp/pulp/core/platform/include/pulp/platform/environment.hpp