An opaque handle representing a menu/submenu on a system tray object.
More...
- Since
- This struct is available since SDL 3.2.0.
◆ TrayMenu()
constexpr SDL::TrayMenu::TrayMenu |
( |
SDL_TrayMenu * |
trayMenu = {} | ) |
|
|
inlineconstexpr |
- Parameters
-
trayMenu | the value to be wrapped |
◆ AppendEntry()
If label is nullptr, the entry will be a separator. Many functions won't work for an entry that is a separator.
An entry does not need to be destroyed; it will be destroyed with the tray.
- Parameters
-
label | the text to be displayed on the entry, in UTF-8 encoding, or nullptr for a separator. |
flags | a combination of flags, some of which are mandatory. |
- Returns
- the newly created entry, or nullptr if pos is out of bounds.
- Thread safety:
- This function should be called on the thread that created the tray.
- Since
- This function is available since SDL 3.2.0.
- See also
- TrayMenu.InsertEntry
-
TrayEntryFlags
-
TrayMenu.GetEntries
-
TrayEntryBase.Remove
-
TrayEntryBase.GetParent
◆ operator bool()
constexpr SDL::TrayMenu::operator bool |
( |
| ) |
const |
|
inlineexplicitconstexpr |
- Returns
- True if valid state, false otherwise.
◆ operator SDL_TrayMenu *()
constexpr SDL::TrayMenu::operator SDL_TrayMenu * |
( |
| ) |
const |
|
inlineconstexpr |
The documentation for this class was generated from the following file: