Function SDL_SetTrayIcon

pub unsafe extern "C" fn SDL_SetTrayIcon(
    tray: *mut SDL_Tray,
    icon: *mut SDL_Surface,
)
Available on crate feature dep_sdl3 only.
Expand description

Updates the system tray icon’s icon.

§Parameters

  • tray: the tray icon to be updated.
  • icon: the new icon. May be NULL.

§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