Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorZones::LayoutRegistry::ScreenShape Struct Reference

The geometry-derived context facts of one screen: its orientation token ("portrait" / "landscape") and its size in device pixels (from m_screenPixelSizeProvider). More...

#include <PhosphorZones/LayoutRegistry.h>

Public Attributes

QString orientation
std::optional< QSize > pixelSize

Detailed Description

The geometry-derived context facts of one screen: its orientation token ("portrait" / "landscape") and its size in device pixels (from m_screenPixelSizeProvider).

pixelSize is engaged only for a size with a positive width and height, and orientation is empty only when neither the size nor m_screenOrientationProvider answered. The aspect-ratio token is not carried: it is a pure function of the size, derived where a query is stamped (applyScreenShape), so a cache hit never pays for it.

Member Data Documentation

◆ orientation

QString PhosphorZones::LayoutRegistry::ScreenShape::orientation

◆ pixelSize

std::optional<QSize> PhosphorZones::LayoutRegistry::ScreenShape::pixelSize

The documentation for this struct was generated from the following file: