Skip to content

cf_clipboard_get_data

Category: input
GitHub: cute_clipboard.h


Gets clipboard data for the given MIME type.

void* cf_clipboard_get_data(const char* mime_type, int* size);
Parameters Description
mime_type The MIME type to request (e.g. "image/png").
size Output parameter for the size of the returned data in bytes.

Return Value

Returns a malloc'd buffer with the clipboard data. Caller must free with cf_free. Returns NULL on failure.

cf_clipboard_set_data
cf_clipboard_has_data