Function SDL_GetTrayEntries

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

Returns a list of entries in the menu, in order.

§Parameters

  • menu: The menu to get entries from.
  • count: An optional pointer to obtain the number of entries in the menu.

§Return value

Returns a NULL-terminated list of entries within the given menu. The pointer becomes invalid when any function that inserts or deletes entries in the menu is called.

§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