Bundle SDL2 multimedia library for 2D graphics, input handling, audio playback, and window management. Core types: Window, Renderer, Texture, Surface, Event, and Mixer. Compile with -lib sdl2.
Clipboard
Clipboard handling
Operations
GetClipboardText # function
Get UTF-8 text from the clipboard
function : GetClipboardText() ~ String
Return
| Type | Description |
|---|
| String | clipboard text on success or NULL on failure |
HasClipboardText # function
Flag indicating whether the clipboard exists and contains a text string that is non-empty
function : HasClipboardText() ~ Bool
Return
| Type | Description |
|---|
| Bool | true if the clipboard has text, or false if it does not |
SetClipboardText # function
Put UTF-8 text into the clipboard.
function : SetClipboardText(text:String) ~ Int
Parameters
| Name | Type | Description |
|---|
| text | String | the text to store in the clipboard |
Return
| Type | Description |
|---|
| Int | 0 on success or a negative error code on failure |