sdlSetWindowModalFor function

int sdlSetWindowModalFor(
  1. Pointer<SdlWindow> modalWindow,
  2. Pointer<SdlWindow> parentWindow
)

Set the window as a modal for another window.

\param modal_window the window that should be set modal \param parent_window the parent window for the modal window \returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.5.

extern DECLSPEC int SDLCALL SDL_SetWindowModalFor(SDL_Window * modal_window, SDL_Window * parent_window)

Implementation

int sdlSetWindowModalFor(
    Pointer<SdlWindow> modalWindow, Pointer<SdlWindow> parentWindow) {
  final sdlSetWindowModalForLookupFunction = libSdl2.lookupFunction<
      Int32 Function(
          Pointer<SdlWindow> modalWindow, Pointer<SdlWindow> parentWindow),
      int Function(Pointer<SdlWindow> modalWindow,
          Pointer<SdlWindow> parentWindow)>('SDL_SetWindowModalFor');
  return sdlSetWindowModalForLookupFunction(modalWindow, parentWindow);
}