Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorScreens::ScreenManagerConfig Struct Reference

Construction-time wiring for ScreenManager. More...

#include <PhosphorScreens/Manager.h>

Public Attributes

IPhysicalScreenSource * physicalScreenSource = nullptr
IPanelSource * panelSource = nullptr
IConfigStore * configStore = nullptr
bool useGeometrySensors = true
int maxVirtualScreensPerPhysical = 8

Detailed Description

Construction-time wiring for ScreenManager.

All members default-construct to a "nothing fancy" state:

  • physicalScreenSource null → ScreenManager builds its own QtPhysicalScreenSource (the live QGuiApplication-backed source). Inject a FakePhysicalScreenSource to drive the add/remove/move/resize sequence from a test.
  • panelSource null → ScreenManager treats panel offsets as zero, emits ScreenManager::panelGeometryReady on the next event loop turn.
  • configStore null → no VS subdivision support; cache stays empty.
  • useGeometrySensors true → create layer-shell sensor windows for real-time available-area tracking.

Pointers are non-owning EXCEPT a null physicalScreenSource, where the manager owns the QtPhysicalScreenSource it constructs. An injected physical screen source, panel source or config store must outlive the manager.

Top-level (not nested in ScreenManager) so its in-class member initialisers are reachable at the ScreenManager constructor's default-argument parse site — nested types' initialisers are not.

Member Data Documentation

◆ configStore

IConfigStore* PhosphorScreens::ScreenManagerConfig::configStore = nullptr

◆ maxVirtualScreensPerPhysical

int PhosphorScreens::ScreenManagerConfig::maxVirtualScreensPerPhysical = 8

◆ panelSource

IPanelSource* PhosphorScreens::ScreenManagerConfig::panelSource = nullptr

◆ physicalScreenSource

IPhysicalScreenSource* PhosphorScreens::ScreenManagerConfig::physicalScreenSource = nullptr

◆ useGeometrySensors

bool PhosphorScreens::ScreenManagerConfig::useGeometrySensors = true

The documentation for this struct was generated from the following file:
  • phosphor-screens/include/PhosphorScreens/Manager.h