Function SDL_SetTrayEntryCallback

pub unsafe extern "C" fn SDL_SetTrayEntryCallback(
    entry: *mut SDL_TrayEntry,
    callback: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut SDL_TrayEntry)>,
    userdata: *mut c_void,
)
Available on crate feature dep_sdl3 only.
Expand description

Sets a callback to be invoked when the entry is selected.

§Parameters

  • entry: the entry to be updated.
  • callback: a callback to be invoked when the entry is selected.
  • userdata: an optional pointer to pass extra data to the callback when it will be invoked.

§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