lecui 1.0.0-alpha.20
lecui C++ user interface library
|
Base class for all widgets with badges. More...
#include <widget.h>
Public Member Functions | |
bool | operator== (const badge_widget ¶m) |
Check whether two badges are equal. Only those badge properties that require the badge's resources to be re-created are considered. More... | |
bool | operator!= (const badge_widget ¶m) |
Check whether two badges are NOT equal. Only those badge properties that require the badge's resources to be re-created are considered. More... | |
virtual badge_specs & | badge ()=0 |
Get or set the widget's badge. More... | |
Protected Attributes | |
badge_specs | _badge |
The badge's specs. | |
Base class for all widgets with badges.
Widgets that use badges inherit from both this class and the widget class.
|
pure virtual |
Get or set the widget's badge.
The badge is useful in indicating when something requires user attention, e.g., for showing how many unread messages the user has or for indicating when an update is available.
Implemented in liblec::lecui::containers::pane_specs, liblec::lecui::containers::tab, liblec::lecui::widgets::button, liblec::lecui::widgets::custom, liblec::lecui::widgets::icon, liblec::lecui::widgets::image_view, and liblec::lecui::widgets::rectangle.
bool liblec::lecui::widgets::badge_widget::operator!= | ( | const badge_widget & | param | ) |
Check whether two badges are NOT equal. Only those badge properties that require the badge's resources to be re-created are considered.
param | The badge to compare to. |
bool liblec::lecui::widgets::badge_widget::operator== | ( | const badge_widget & | param | ) |
Check whether two badges are equal. Only those badge properties that require the badge's resources to be re-created are considered.
param | The badge to compare to. |