cf_clipboard_set_data¶
Category: input
GitHub: cute_clipboard.h
Sets arbitrary data on the clipboard for the given MIME types.
CF_Result cf_clipboard_set_data(const void* data, int size, const char** mime_types, int num_mime_types);
| Parameters | Description |
|---|---|
data |
Pointer to the data to copy onto the clipboard. |
size |
Size of the data in bytes. |
mime_types |
Array of MIME type strings (e.g. "image/png"). |
num_mime_types |
Number of MIME type strings. |
Return Value¶
Returns success or an error result.
Remarks¶
The data is copied internally. The same data is returned for any of the listed MIME types.