SDL3pp
A slim C++ wrapper for SDL3
|
An opaque handle representing an entry on a system tray object. More...
Public Member Functions | |
constexpr | TrayEntry ()=default |
Default ctor. | |
constexpr | TrayEntry (const TrayEntryRaw resource) |
Constructs from TrayEntryParam. More... | |
constexpr | TrayEntry (const TrayEntry &other)=default |
Copy constructor. | |
constexpr | TrayEntry (TrayEntry &&other) |
Move constructor. | |
~TrayEntry () | |
Destructor. | |
TrayEntry & | operator= (TrayEntry other) |
Assignment operator. | |
constexpr TrayEntryRaw | get () const |
Retrieves underlying TrayEntryRaw. | |
constexpr TrayEntryRaw | release () |
Retrieves underlying TrayEntryRaw and clear this. | |
constexpr auto | operator<=> (const TrayEntry &other) const =default |
Comparison. | |
constexpr bool | operator== (std::nullptr_t _) const |
Comparison. | |
constexpr | operator bool () const |
Converts to bool. | |
constexpr | operator TrayEntryParam () const |
Converts to TrayEntryParam. | |
void | Remove () |
Removes a tray entry. More... | |
TrayMenu | CreateSubmenu () |
Create a submenu for a system tray entry. More... | |
TrayMenu | GetSubmenu () |
Gets a previously created tray entry submenu. More... | |
void | SetLabel (StringParam label) |
Sets the label of an entry. More... | |
const char * | GetLabel () const |
Gets the label of an entry. More... | |
void | SetChecked (bool checked) |
Sets whether or not an entry is checked. More... | |
bool | GetChecked () const |
Gets whether or not an entry is checked. More... | |
void | SetEnabled (bool enabled) |
Sets whether or not an entry is enabled. More... | |
bool | GetEnabled () const |
Gets whether or not an entry is enabled. More... | |
void | SetCallback (TrayCB callback) |
Sets a callback to be invoked when the entry is selected. More... | |
void | SetCallback (TrayCallback callback, void *userdata) |
Sets a callback to be invoked when the entry is selected. More... | |
void | Click () |
Simulate a click on a tray entry. More... | |
TrayMenu | GetParent () |
Gets the menu containing a certain tray entry. More... | |
|
inlineconstexpr |
resource | a TrayEntryRaw to be wrapped. |
|
inline |
callback | a callback to be invoked when the entry is selected. |