Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::platform::DisplayInfo Struct Reference

Logical display geometry. More...

#include <environment.hpp>

Public Attributes

float width = 0.0f
float height = 0.0f
int physical_width = 0
int physical_height = 0
float scale = 1.0f
float refresh_hz = 0.0f
 Refresh rate in Hz. Zero when unknown.
std::string name
 Optional human-readable name (e.g. "Built-in Retina Display").

Detailed Description

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).

Member Data Documentation

◆ 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