![]() |
Heaven v0.1.0-1
C++ global-menu library for Wayland sessions
|
Mixin interface for client objects that expose a keyboard shortcut. More...
#include "HNWithShortcut.h"

Public Member Functions | |
| const std::string & | shortcut () const noexcept |
| Returns the current keyboard shortcut. | |
| void | setShortcut (const std::string &shortcut) noexcept |
| Updates the shortcut and notifies the bar. | |
| virtual | ~HNWithShortcut () noexcept=default |
| Virtual destructor (makes the mixin polymorphic for safe cross-casts). | |
Mixin interface for client objects that expose a keyboard shortcut.
|
noexcept |
Updates the shortcut and notifies the bar.
If the new shortcut equals the current one, nothing is sent. Otherwise the change is queued and delivered to the bar on the next commit().
| shortcut | New shortcut string. |
|
inlinenoexcept |
Returns the current keyboard shortcut.