logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_SetTrayEntryLabel - Sets the label of an entry.

Availability

       This function is available since SDL 3.2.0.

Description

       An  entry  cannot  change between a separator and an ordinary entry; that is, it is not possible to set a
       non-NULL label on an entry that has a NULL label (separators), or to set a NULL label to  an  entry  that
       has a non-NULL label. The function will silently fail if that happens.

Function Parameters

entry  the entry to be updated.

       label  the new label for the entry in UTF-8 encoding.

Name

       SDL_SetTrayEntryLabel - Sets the label of an entry.

See Also

SDL_GetTrayEntries(3), SDL_InsertTrayEntryAt(3), SDL_GetTrayEntryLabel(3)

Simple Directmedia Layer                           SDL 3.2.20                           SDL_SetTrayEntryLabel(3)

Synopsis

#include<SDL3/SDL_tray.h>voidSDL_SetTrayEntryLabel(SDL_TrayEntry*entry,constchar*label);

Thread Safety

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

See Also