getPrimarySelection

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

@safe @trusted
static if(sdlSupport >= SDLSupport.v2_26)
string
getPrimarySelection
()

Return Value

Type: string

primary selection text content

Throws

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

Meta