SDL_HasClipboardData(3)
π SDL_HasClipboardData(3) π
okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, and today's main character is SDL_HasClipboardData β she's the girl who just checks if there's anything on the clipboard for you. No taking, no giving, just vibes and a yes/no. π
β¨ NAME β¨
SDL_HasClipboardData β query whether there is data in the clipboard for the provided mime type. that's it, that's the whole job, and she does it flawlessly π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_clipboard.h>
bool SDL_HasClipboardData(const char *mime_type);
π¦ FUNCTION PARAMETERS π¦
mime_typeβ the mime type to check for data. like, which flavour of clipboard content are we asking about?text/plain?image/png? you tell her, she'll go look π
β RETURN VALUE β
Returns true if data exists in the clipboard for the provided mime type, and false if it does not. literally a vibe check for your clipboard, no cap π«Ά
π₯ THREAD SAFETY π₯
This function should only be called on the main thread. not me catching you calling it from a worker thread π she's a main-thread girlie, respect it. periodt.
π AVAILABILITY π
This function is available since SDL 3.2.0. so if you're on something older, she's not there yet bestie, sorry π
π SEE ALSO π
SDL_SetClipboardData(3)β the one who puts stuff thereSDL_GetClipboardData(3)β the one who takes stuff out
iykyk, the clipboard trio ate π
mwah, that's the whole page, love you, bye πβ¨
this cutie was brought to you by Simple Directmedia Layer β SDL 3.4.18 edition, straight from the SDL3 FUNCTIONS manual. go forth and check your clipboard, bestie ππ¦πΈ
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms