Function SDL_GetTrayMenuParentEntry

pub unsafe extern "C" fn SDL_GetTrayMenuParentEntry(
    menu: *mut SDL_TrayMenu,
) -> *mut SDL_TrayEntry
Available on crate feature dep_sdl3 only.
Expand description

Gets the entry for which the menu is a submenu, if the current menu is a submenu.

Either this function or SDL_GetTrayMenuParentTray() will return non-NULL for any given menu.

§Parameters

  • menu: the menu for which to get the parent entry.

§Return value

Returns the parent entry, or NULL if this menu is not 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.

§See also