Module: SDL2::Window::Flags

Defined in:
ext/sdl2_ext/video.c,
ext/sdl2_ext/video.c

Overview

OR’d bits of the constants of this module represents window states.

You can see a window state using #flags and create a window with a specified state using flag parameter of create.

Constant Summary collapse

FULLSCREEN =

fullscreen window

UINT2NUM(SDL_WINDOW_FULLSCREEN)
FULLSCREEN_DESKTOP =

fullscreen window at the current desktop resolution

UINT2NUM(SDL_WINDOW_FULLSCREEN_DESKTOP)
OPENGL =

window usable with OpenGL context

UINT2NUM(SDL_WINDOW_OPENGL)
SHOWN =

window is visible

UINT2NUM(SDL_WINDOW_SHOWN)
HIDDEN =

window is not visible

UINT2NUM(SDL_WINDOW_HIDDEN)
BORDERLESS =

no window decoration

UINT2NUM(SDL_WINDOW_BORDERLESS)
RESIZABLE =

window is resizable

UINT2NUM(SDL_WINDOW_RESIZABLE)
MINIMIZED =

window is minimized

UINT2NUM(SDL_WINDOW_MINIMIZED)
MAXIMIZED =

window is maximized

UINT2NUM(SDL_WINDOW_MAXIMIZED)
INPUT_GRABBED =

window has grabbed input focus

UINT2NUM(SDL_WINDOW_INPUT_GRABBED)
INPUT_FOCUS =

window has input focus

UINT2NUM(SDL_WINDOW_INPUT_FOCUS)
MOUSE_FOCUS =

window has mouse focus

UINT2NUM(SDL_WINDOW_MOUSE_FOCUS)
FOREIGN =

window is not created by SDL

UINT2NUM(SDL_WINDOW_FOREIGN)
ALLOW_HIGHDPI =

window should be created in high-DPI mode if supported (>= SDL 2.0.1)

UINT2NUM(SDL_WINDOW_ALLOW_HIGHDPI)
MOUSE_CAPTURE =

window has mouse caputred (>= SDL 2.0.4)

UINT2NUM(SDL_WINDOW_MOUSE_CAPTURE)