sdl2/generated/lib_sdl_clipboard library

Functions

sdlGetClipboardText() Pointer<Int8>
Get UTF-8 text from the clipboard, which must be freed with SDL_free().
sdlGetPrimarySelectionText() Pointer<Int8>
Get UTF-8 text from the primary selection, which must be freed with SDL_free().
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.
sdlSetClipboardText(String? text) int
Put UTF-8 text into the clipboard.
sdlSetPrimarySelectionText(String? text) int
Put UTF-8 text into the primary selection.