Prevents the compositor from idling the output that the associated surface is visible on. More...
#include <phosphor-wayland/include/PhosphorWayland/IdleInhibitor.h>
Signals | |
| void | surfaceChanged () |
| void | activeChanged () |
Public Member Functions | |
| IdleInhibitor (QObject *parent=nullptr) | |
| ~IdleInhibitor () override | |
| QWindow * | surface () const |
| void | setSurface (QWindow *window) |
| bool | isActive () const |
Static Public Member Functions | |
| static bool | isSupported () |
Prevents the compositor from idling the output that the associated surface is visible on.
The inhibitor is active for as long as this object lives and the surface remains visible. Destroying the object (or the surface) lifts the inhibition.
Usage from QML (inside a window):
IdleInhibitor { surface: Window.window }
Until surface is set the inhibitor stays inactive (active is false); nothing happens and no inhibitor object is created.
|
explicit |
|
override |
|
signal |
| bool PhosphorWayland::IdleInhibitor::isActive | ( | ) | const |
|
static |
| void PhosphorWayland::IdleInhibitor::setSurface | ( | QWindow * | window | ) |
| QWindow * PhosphorWayland::IdleInhibitor::surface | ( | ) | const |
|
signal |