sdl3/generated/lib_sdl_tray library

Functions

sdlCreateTray(Pointer<SdlSurface> icon, String? tooltip) Pointer<SdlTray>
Create an icon to be placed in the operating system's tray, or equivalent.
sdlCreateTrayMenu(Pointer<SdlTray> tray) Pointer<SdlTrayMenu>
Create a menu for a system tray.
sdlCreateTraySubmenu(Pointer<SdlTrayEntry> entry) Pointer<SdlTrayMenu>
Create a submenu for a system tray entry.
sdlDestroyTray(Pointer<SdlTray> tray) → void
Destroys a tray object.
sdlGetTrayEntries(Pointer<SdlTrayMenu> menu, Pointer<Int32> size) Pointer<Pointer<SdlTrayEntry>>
Returns a list of entries in the menu, in order.
sdlGetTrayEntryChecked(Pointer<SdlTrayEntry> entry) bool
Gets whether or not an entry is checked.
sdlGetTrayEntryEnabled(Pointer<SdlTrayEntry> entry) bool
Gets whether or not an entry is enabled.
sdlGetTrayEntryLabel(Pointer<SdlTrayEntry> entry) String?
Gets the label of an entry.
sdlGetTrayEntryParent(Pointer<SdlTrayEntry> entry) Pointer<SdlTrayMenu>
Gets the menu contianing a certain tray entry.
sdlGetTrayMenu(Pointer<SdlTray> tray) Pointer<SdlTrayMenu>
Gets a previously created tray menu.
sdlGetTrayMenuParentEntry(Pointer<SdlTrayMenu> menu) Pointer<SdlTrayEntry>
Gets the entry for which the menu is a submenu, if the current menu is a submenu.
sdlGetTrayMenuParentTray(Pointer<SdlTrayMenu> menu) Pointer<SdlTray>
Gets the tray for which this menu is the first-level menu, if the current menu isn't a submenu.
sdlGetTraySubmenu(Pointer<SdlTrayEntry> entry) Pointer<SdlTrayMenu>
Gets a previously created tray entry submenu.
sdlInsertTrayEntryAt(Pointer<SdlTrayMenu> menu, int pos, String? label, int flags) Pointer<SdlTrayEntry>
Insert a tray entry at a given position.
sdlRemoveTrayEntry(Pointer<SdlTrayEntry> entry) → void
Removes a tray entry.
sdlSetTrayEntryCallback(Pointer<SdlTrayEntry> entry, Pointer<NativeFunction<SdlTrayCallback>> callback, Pointer<NativeType> userdata) → void
Sets a callback to be invoked when the entry is selected.
sdlSetTrayEntryChecked(Pointer<SdlTrayEntry> entry, bool checked) → void
Sets whether or not an entry is checked.
sdlSetTrayEntryEnabled(Pointer<SdlTrayEntry> entry, bool enabled) → void
Sets whether or not an entry is enabled.
sdlSetTrayEntryLabel(Pointer<SdlTrayEntry> entry, String? label) → void
Sets the label of an entry.
sdlSetTrayIcon(Pointer<SdlTray> tray, Pointer<SdlSurface> icon) → void
Updates the system tray icon's icon.
sdlSetTrayTooltip(Pointer<SdlTray> tray, String? tooltip) → void
Updates the system tray icon's tooltip.