sdlHasPrimarySelectionText function
Query whether the primary selection exists and contains a non-empty text string.
\returns true if the primary selection has text, or false if it does not.
\threadsafety This function should only be called on the main thread.
\since This function is available since SDL 3.1.3.
\sa SDL_GetPrimarySelectionText \sa SDL_SetPrimarySelectionText
extern SDL_DECLSPEC bool SDLCALL SDL_HasPrimarySelectionText(void)
Implementation
bool sdlHasPrimarySelectionText() {
final sdlHasPrimarySelectionTextLookupFunction =
libSdl3.lookupFunction<Uint8 Function(), int Function()>(
'SDL_HasPrimarySelectionText');
return sdlHasPrimarySelectionTextLookupFunction() == 1;
}