![]() |
Heaven v0.1.0-1
C++ global-menu library for Wayland sessions
|
Mixin interface for client objects that can be enabled or disabled. More...
#include "HNWithEnabled.h"

Public Member Functions | |
| bool | enabled () const noexcept |
| Returns whether the object is currently enabled. | |
| void | setEnabled (bool enabled) noexcept |
| Updates the enabled state and notifies the bar. | |
| virtual | ~HNWithEnabled () noexcept=default |
| Virtual destructor (makes the mixin polymorphic for safe cross-casts). | |
Mixin interface for client objects that can be enabled or disabled.
|
inlinenoexcept |
Returns whether the object is currently enabled.
|
noexcept |
Updates the enabled state and notifies the bar.
If the new state equals the current one, nothing is sent. Otherwise the change is queued and delivered to the bar on the next commit().
| enabled | New enabled state. |