SDL_SetPrimarySelectionText - Man Page

Put UTF-8 text into the primary selection.

Synopsis

#include <SDL3/SDL_clipboard.h>

bool SDL_SetPrimarySelectionText(const char *text);

Function Parameters

text

the text to store in the primary selection.

Return Value

Returns true on success or false on failure; call SDL_GetError() for more information.

Thread Safety

This function should only be called on the main thread.

Availability

This function is available since SDL 3.2.0.

See Also

SDL_GetPrimarySelectionText(3), SDL_HasPrimarySelectionText(3)

Referenced By

SDL_GetPrimarySelectionText(3), SDL_HasPrimarySelectionText(3).

SDL 3.3.2 Simple Directmedia Layer SDL3 FUNCTIONS