Function SDL_GetTrayMenuParentTray
pub unsafe extern "C" fn SDL_GetTrayMenuParentTray(
menu: *mut SDL_TrayMenu,
) -> *mut SDL_Tray
Available on crate feature
dep_sdl3
only.Expand description
Gets the tray for which this menu is the first-level menu, if the current menu isn’t a submenu.
Either this function or SDL_GetTrayMenuParentEntry()
will return non-NULL
for any given menu.
§Parameters
menu
: the menu for which to get the parent enttrayry.
§Return value
Returns the parent tray, or NULL if this menu is a submenu.
§Thread safety
This function should be called on the thread that created the tray.
§Availability
This function is available since SDL 3.2.0.