sdlSetTrayEntryCallback function tray
void
sdlSetTrayEntryCallback(
- Pointer<
SdlTrayEntry> entry, - Pointer<
NativeFunction< callback,SdlTrayCallback> > - Pointer<
NativeType> userdata
Sets a callback to be invoked when the entry is selected.
\param entry the entry to be updated. \param callback a callback to be invoked when the entry is selected. \param userdata an optional pointer to pass extra data to the callback when it will be invoked.
\threadsafety This function should be called on the thread that created the tray.
\since This function is available since SDL 3.2.0.
\sa SDL_GetTrayEntries \sa SDL_InsertTrayEntryAt
extern SDL_DECLSPEC void SDLCALL SDL_SetTrayEntryCallback(SDL_TrayEntry *entry, SDL_TrayCallback callback, void *userdata)
Implementation
void sdlSetTrayEntryCallback(
Pointer<SdlTrayEntry> entry,
Pointer<NativeFunction<SdlTrayCallback>> callback,
Pointer<NativeType> userdata,
) {
final sdlSetTrayEntryCallbackLookupFunction = _libSdl
.lookupFunction<
Void Function(
Pointer<SdlTrayEntry> entry,
Pointer<NativeFunction<SdlTrayCallback>> callback,
Pointer<NativeType> userdata,
),
void Function(
Pointer<SdlTrayEntry> entry,
Pointer<NativeFunction<SdlTrayCallback>> callback,
Pointer<NativeType> userdata,
)
>('SDL_SetTrayEntryCallback');
return sdlSetTrayEntryCallbackLookupFunction(entry, callback, userdata);
}