Lightweight descriptor for a connected screen, suitable for passing across settings UIs and QML.
More...
#include <phosphor-screens/include/PhosphorScreens/ScreenInfo.h>
Lightweight descriptor for a connected screen, suitable for passing across settings UIs and QML.
Pure POD — no Qt meta-object plumbing. Apps that produce this data (typically by querying their compositor over D-Bus or via QGuiApplication) can pass lists across language boundaries through screenInfoListToVariantList().
◆ connectorName
| QString PhosphorScreens::ScreenInfo::connectorName |
Physical connector (e.g.
"DP-2").
◆ height
| int PhosphorScreens::ScreenInfo::height = 0 |
◆ isPrimary
| bool PhosphorScreens::ScreenInfo::isPrimary = false |
◆ isVirtualScreen
| bool PhosphorScreens::ScreenInfo::isVirtualScreen = false |
◆ manufacturer
| QString PhosphorScreens::ScreenInfo::manufacturer |
◆ model
| QString PhosphorScreens::ScreenInfo::model |
◆ name
| QString PhosphorScreens::ScreenInfo::name |
◆ screenId
| QString PhosphorScreens::ScreenInfo::screenId |
◆ virtualDisplayName
| QString PhosphorScreens::ScreenInfo::virtualDisplayName |
User-facing name for virtual screens (e.g.
"Left").
◆ virtualIndex
| int PhosphorScreens::ScreenInfo::virtualIndex = -1 |
0-based index within the physical screen (-1 = not virtual).
◆ width
| int PhosphorScreens::ScreenInfo::width = 0 |
| int PhosphorScreens::ScreenInfo::x = 0 |
Screen-space position of the top-left corner, in the compositor's global coordinate space (the same space width/height are measured in).
Lets a multi-monitor map lay tiles out in their real arrangement. Unlike width/height, 0 is a legitimate value (the primary output typically sits at the origin), so screenInfoListToVariantList() emits x/y unconditionally rather than skipping non-positive values.
| int PhosphorScreens::ScreenInfo::y = 0 |
The documentation for this struct was generated from the following file: