![]() |
Heaven v0.1.0-1
C++ global-menu library for Wayland sessions
|
Mixin interface for client objects that expose an icon name. More...
#include "HNWithIcon.h"
Public Member Functions | |
| const std::string & | icon () const noexcept |
| Returns the current icon name. | |
| void | setIcon (const std::string &icon) noexcept |
| Updates the icon name and notifies the bar. | |
| virtual | ~HNWithIcon () noexcept=default |
| Virtual destructor (makes the mixin polymorphic for safe cross-casts). | |
Mixin interface for client objects that expose an icon name.
|
inlinenoexcept |
Returns the current icon name.
|
noexcept |
Updates the icon name and notifies the bar.
If the new icon equals the current one, nothing is sent. Otherwise the change is queued and delivered to the bar on the next commit().
| icon | New icon name. |