dsdl2.clipboard

Members

Functions

getClipboard
string getClipboard()

Wraps SDL_GetClipboardText which gets the text stored in the clipboard

getPrimarySelection
string getPrimarySelection()

Wraps SDL_GetPrimarySelectionText (from SDL 2.26) which gets the text stored in the primary selection

hasClipboard
bool hasClipboard()

Wraps SDL_HasClipboardText which checks whether the clipboard exists and contains a non-empty text string

hasPrimarySelection
bool hasPrimarySelection()

Wraps SDL_HasPrimarySelectionText (from SDL 2.26) which checks whether the primary selection exists and contains a non-empty text string

setClipboard
void setClipboard(string text)

Wraps SDL_SetClipboardText which puts a string of text into the clipboard

setPrimarySelection
void setPrimarySelection(string text)

Wraps SDL_SetPrimarySelectionText (from SDL 2.26) which puts a string of text into the primary selection

Meta

Authors

Avaxar <avaxar@nekkl.org>