QObject that emits signals for IScreenProvider state changes.
More...
#include <phosphor-layer/include/PhosphorLayer/IScreenProvider.h>
QObject that emits signals for IScreenProvider state changes.
Exposed separately from IScreenProvider because the interface itself is non-QObject (so implementers can freely multiple-inherit it into domain QObjects without the Qt multiple-QObject-inheritance restriction). Implementations return a pointer to a notifier they own; consumers connect to it with type-safe Qt5-style connect(...).
◆ ScreenProviderNotifier()
| PhosphorLayer::ScreenProviderNotifier::ScreenProviderNotifier |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ ~ScreenProviderNotifier()
| PhosphorLayer::ScreenProviderNotifier::~ScreenProviderNotifier |
( |
| ) |
|
|
override |
◆ focusChanged
| void PhosphorLayer::ScreenProviderNotifier::focusChanged |
( |
| ) |
|
|
signal |
◆ primaryChanged
| void PhosphorLayer::ScreenProviderNotifier::primaryChanged |
( |
| ) |
|
|
signal |
IScreenProvider::primary() would now return a different QScreen*.
Implementations that alias primary to qGuiApp's primary should emit this on QGuiApplication::primaryScreenChanged; providers with their own primary policy (focused-monitor primary, virtual- screen primary) emit when their own state flips. Consumers observing isPrimary roles rely on this rather than reaching into qGuiApp directly — without it, multi-screen shells whose provider disagrees with qGuiApp would report a stale primary until the next full screensChanged.
◆ screensChanged
| void PhosphorLayer::ScreenProviderNotifier::screensChanged |
( |
| ) |
|
|
signal |
The documentation for this class was generated from the following file: