SDL_HasClipboardData(3)

SDL_HasClipboardData3

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

Usage

#include "SDL3/SDL.h"

bool SDL_HasClipboardData(const char *mime_type);

Header file

Defined in SDL3/SDL_clipboard.h

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.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.