Function setPrimarySelection

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

void setPrimarySelection (
  string text
) @trusted;

Parameters

NameDescription
text string to put into the primary selection

Throws

dsdl2.SDLException on fail when putting the string into the primary selection