Window.modalFor

Wraps SDL_SetWindowModalFor (from SDL 2.0.5) which sets the window to be a modal of another parent window, making the window always be above its parent window

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

Parameters

parent Window

the parent window which owns the window as a modal

Throws

dsdl2.SDLException if failed to set the window as modal

Meta