sdl3/generated/lib_sdl_clipboard library

Functions

sdlClearClipboardData() bool
Clear the clipboard data.
sdlGetClipboardData(String? mimeType, Pointer<Uint32> size) Pointer<NativeType>
Get the data from clipboard for a given mime type.
sdlGetClipboardMimeTypes(Pointer<Uint32> numMimeTypes) Pointer<Pointer<Int8>>
Retrieve the list of mime types available in the clipboard.
sdlGetClipboardText() Pointer<Int8>
Get UTF-8 text from the clipboard.
sdlGetPrimarySelectionText() Pointer<Int8>
Get UTF-8 text from the primary selection.
sdlHasClipboardData(String? mimeType) bool
Query whether there is data in the clipboard for the provided mime type.
sdlHasClipboardText() bool
Query whether the clipboard exists and contains a non-empty text string.
sdlHasPrimarySelectionText() bool
Query whether the primary selection exists and contains a non-empty text string.
sdlSetClipboardData(Pointer<NativeFunction<SdlClipboardDataCallback>> callback, Pointer<NativeFunction<SdlClipboardCleanupCallback>> cleanup, Pointer<NativeType> userdata, Pointer<Pointer<Int8>> mimeTypes, int numMimeTypes) bool
Offer clipboard data to the OS.
sdlSetClipboardText(String? text) bool
Put UTF-8 text into the clipboard.
sdlSetPrimarySelectionText(String? text) bool
Put UTF-8 text into the primary selection.