sdlHasPrimarySelectionText function
Query whether the primary selection exists and contains a non-empty text string.
\returns SDL_TRUE if the primary selection has text, or SDL_FALSE if it does not.
\since This function is available since SDL 2.26.0.
\sa SDL_GetPrimarySelectionText \sa SDL_SetPrimarySelectionText
extern DECLSPEC SDL_bool SDLCALL SDL_HasPrimarySelectionText(void)
Implementation
bool sdlHasPrimarySelectionText() {
final sdlHasPrimarySelectionTextLookupFunction =
libSdl2.lookupFunction<Int32 Function(), int Function()>(
'SDL_HasPrimarySelectionText');
return sdlHasPrimarySelectionTextLookupFunction() == 1;
}