SDL_HasClipboardData - Man Page

Query whether there is data in the clipboard for the provided mime type.

Synopsis

#include <SDL3/SDL_clipboard.h>

bool SDL_HasClipboardData(const char *mime_type);

Function Parameters

mime_type

the mime type to check for data for.

Return Value

Returns true if there exists data in clipboard for the provided mime type, false if it does not.

Thread Safety

This function should only be called on the main thread.

Availability

This function is available since SDL 3.2.0.

See Also

SDL_SetClipboardData(3), SDL_GetClipboardData(3)

Referenced By

SDL_GetClipboardData(3), SDL_SetClipboardData(3).

SDL 3.2.16 Simple Directmedia Layer SDL3 FUNCTIONS