Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

SDL_SetWindowModal - Toggle the state of the window as modal.

Availability

       This function is available since SDL 3.2.0.

Description

       To  enable  modal  status  on  a  window,  the  window must currently be the child window of a parent, or
       toggling modal status on will fail.

Function Parameters

window the window on which to set the modal state.

       modal  true to toggle modal status on, false to toggle it off.

Name

       SDL_SetWindowModal - Toggle the state of the window as modal.

Return Value

       for more information.

See Also

SDL_SetWindowParent(3), SDL_WINDOW_MODAL(3)

Simple Directmedia Layer                           SDL 3.2.20                              SDL_SetWindowModal(3)

Synopsis

#include<SDL3/SDL_video.h>boolSDL_SetWindowModal(SDL_Window*window,boolmodal);

Thread Safety

       This function should only be called on the main thread.

See Also