Wiki Page Content

DRAFT

SDL_SetWindowModalFor

Use this function to set the window as a modal for another window.

Syntax

int SDL_SetWindowModalFor(SDL_Window* modal_window,
                          SDL_Window* parent_window)

Function Parameters

modal_window

the window that should be set modal

parent_window

the parent window for the modal window

Return Value

Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

This function is only supported on X11.

Version

This function is available since SDL 2.0.5.


CategoryAPI, CategoryVideo

None: SDL_SetWindowModalFor (last edited 2016-09-29 22:51:16 by PhilippWiesemann)

Feedback
Please include your contact information if you'd like to receive a reply.
Submit