|
SDL3pp
A slim C++ wrapper for SDL3
|
An opaque handle representing a menu/submenu on a system tray object. More...
Public Member Functions | |
| constexpr | TrayMenu (TrayMenuRaw trayMenu={}) noexcept |
| Wraps TrayMenu. | |
| constexpr | operator TrayMenuRaw () const noexcept |
| Unwraps to the underlying TrayMenu. | |
| std::span< TrayEntry > | GetEntries () |
| Returns a list of entries in the menu, in order. | |
| TrayEntry | InsertEntry (int pos, StringParam label, TrayEntryFlags flags) |
| Insert a tray entry at a given position. | |
| TrayEntry | AppendEntry (StringParam label, TrayEntryFlags flags) |
| Appends a tray entry. | |
| TrayEntry | GetParentEntry () const |
| Gets the entry for which the menu is a submenu, if the current menu is a submenu. | |
| TrayRef | GetParentTray () const |
| Gets the tray for which this menu is the first-level menu, if the current menu isn't a submenu. | |
An opaque handle representing a menu/submenu on a system tray object.
|
inlineconstexprnoexcept |
Wraps TrayMenu.
| trayMenu | the value to be wrapped |
|
inlineconstexprnoexcept |
Unwraps to the underlying TrayMenu.