SDL_HasClipboardData - Query whether there is data in the clipboard for the provided mime type.
Contents
Availability
This function is available since SDL 3.2.0.
Function Parameters
mime_type
the mime type to check for data for.
Header File
Defined in SDL3/SDL_clipboard.h
Name
SDL_HasClipboardData - Query whether there is data in the clipboard for the provided mime type.
Return Value
Returns true if there exists data in clipboard for the provided mime type, false if it does not.
See Also
•(3), SDL_SetClipboardData(3), •(3), SDL_GetClipboardData(3) Simple Directmedia Layer SDL 3.2.10 SDL_HasClipboardData(3)
Synopsis
#include"SDL3/SDL.h"boolSDL_HasClipboardData(constchar*mime_type);
Thread Safety
This function should only be called on the main thread.
