Function 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

void modalFor (
  Window parent
) @trusted;

Parameters

NameDescription
parent the parent window which owns the window as a modal

Throws

dsdl2.SDLException if failed to set the window as modal