Scroll to navigation

SDL_HasClipboardData(3) SDL3 FUNCTIONS SDL_HasClipboardData(3)

NAME

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

HEADER FILE

Defined in SDL3/SDL_clipboard.h

SYNOPSIS

#include "SDL3/SDL.h"
bool SDL_HasClipboardData(const char *mime_type);

FUNCTION PARAMETERS

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

You may only call this function from the main thread.

AVAILABILITY

This function is available since SDL 3.1.3.

SEE ALSO

(3), SDL_SetClipboardData(3), (3), SDL_GetClipboardData(3)

SDL 3.1.6 Simple Directmedia Layer