Skip to content

Clipboard functions

Finalspace edited this page May 29, 2026 · 1 revision

This category contains functions for reading/writing clipboard data. More...

Functions

Type Name
fpl_platform_api bool fplGetClipboardText (char *dest, const uint32_t maxDestLen)
Retrieves the current clipboard text.
fpl_platform_api bool fplSetClipboardText (const char *text)
Overwrites the current clipboard text with the given one.

Detailed Description

This category contains functions for reading/writing clipboard data.

Function Documentation

fplGetClipboardText()

fpl_platform_api bool fplGetClipboardText ( char * dest, const uint32_t maxDestLen )

Retrieves the current clipboard text.

Parameters

Direction Parameter Description
[out] dest The destination string buffer to write the clipboard text into.
[in] maxDestLen The total number of characters available in the destination buffer.

Returns: Returns true when the clipboard contained text which is copied into the destination buffer, false otherwise.

fplSetClipboardText()

fpl_platform_api bool fplSetClipboardText ( const char * text)

Overwrites the current clipboard text with the given one.

Parameters

Direction Parameter Description
[in] text The new clipboard string.

Returns: Returns true when the text in the clipboard was changed, false otherwise.

Final Platform Layer

Pages

Topics

Data Structures

Clone this wiki locally