Function getPrimarySelection

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

string getPrimarySelection() @trusted;

Returns

primary selection text content

Throws

dsdl2.SDLException if the primary selection text failed to allocate on SDL's side