display/display_metrics library
Classes
- DisplayMetrics
- Derived metrics: the scale factor and logical resolution, plus the intermediate values for diagnostics.
- DisplayModel
- Inputs describing a physical display. Call compute to derive DisplayMetrics.
- TouchTargets
- Physical floor on scale imposed by fingertips rather than eyes.
Enums
- DisplayUsage
- Expected viewing distance, when not directly known. Values from Fuchsia.
Constants
- logicalPixelVisualAngleDegrees → const double
- Derives a display scale factor (physical pixels per logical pixel) from physical display geometry and expected viewing distance, instead of trusting the OS or device manufacturer to report a sane DPI.