Skip to main content

SDL_CreateTraySubmenu

Function SDL_CreateTraySubmenu 

Source
pub unsafe extern "C" fn SDL_CreateTraySubmenu(
    entry: *mut SDL_TrayEntry,
) -> *mut SDL_TrayMenu
Expand description

Create a submenu for a system tray entry.

This should be called at most once per tray entry.

This function does the same thing as SDL_CreateTrayMenu, except that it takes a SDL_TrayEntry instead of a SDL_Tray.

A menu does not need to be destroyed; it will be destroyed with the tray.

Parameter: entry the tray entry to bind the menu to. Returns: the newly created menu.

Thread Safety: This function should be called on the thread that created the tray.

Available Since: This function is available since SDL 3.2.0.

See Also: SDL_InsertTrayEntryAt See Also: SDL_GetTraySubmenu See Also: SDL_GetTrayMenuParentEntry