Window.focus

Wraps SDL_SetWindowInputFocus (from SDL 2.0.5) which focuses the window to be in reach to the user

class Window
@trusted
static if(sdlSupport >= SDLSupport.v2_0_5)
void
focus
()

Throws

dsdl2.SDLException if failed to focus the window

Meta