Module: SDL2::Window::Flags

Defined in:
video.c,
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 =

Returns fullscreen window.

Returns:

  • (Integer)

    fullscreen window

UINT2NUM(SDL_WINDOW_FULLSCREEN)
FULLSCREEN_DESKTOP =

Returns fullscreen window at the current desktop resolution.

Returns:

  • (Integer)

    fullscreen window at the current desktop resolution

UINT2NUM(SDL_WINDOW_FULLSCREEN_DESKTOP)
OPENGL =

Returns window usable with OpenGL context.

Returns:

  • (Integer)

    window usable with OpenGL context

UINT2NUM(SDL_WINDOW_OPENGL)
SHOWN =

Returns window is visible.

Returns:

  • (Integer)

    window is visible

UINT2NUM(SDL_WINDOW_SHOWN)
HIDDEN =

Returns window is not visible.

Returns:

  • (Integer)

    window is not visible

UINT2NUM(SDL_WINDOW_HIDDEN)
BORDERLESS =

Returns no window decoration.

Returns:

  • (Integer)

    no window decoration

UINT2NUM(SDL_WINDOW_BORDERLESS)
RESIZABLE =

Returns window is resizable.

Returns:

  • (Integer)

    window is resizable

UINT2NUM(SDL_WINDOW_RESIZABLE)
MINIMIZED =

Returns window is minimized.

Returns:

  • (Integer)

    window is minimized

UINT2NUM(SDL_WINDOW_MINIMIZED)
MAXIMIZED =

Returns window is maximized.

Returns:

  • (Integer)

    window is maximized

UINT2NUM(SDL_WINDOW_MAXIMIZED)
INPUT_GRABBED =

Returns window has grabbed input focus.

Returns:

  • (Integer)

    window has grabbed input focus

UINT2NUM(SDL_WINDOW_INPUT_GRABBED)
INPUT_FOCUS =

Returns window has input focus.

Returns:

  • (Integer)

    window has input focus

UINT2NUM(SDL_WINDOW_INPUT_FOCUS)
MOUSE_FOCUS =

Returns window has mouse focus.

Returns:

  • (Integer)

    window has mouse focus

UINT2NUM(SDL_WINDOW_MOUSE_FOCUS)
FOREIGN =

Returns window is not created by SDL.

Returns:

  • (Integer)

    window is not created by SDL

UINT2NUM(SDL_WINDOW_FOREIGN)
ALLOW_HIGHDPI =

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

Returns:

  • (Integer)

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

UINT2NUM(SDL_WINDOW_ALLOW_HIGHDPI)
MOUSE_CAPTURE =

Returns window has mouse caputred (>= SDL 2.0.4).

Returns:

  • (Integer)

    window has mouse caputred (>= SDL 2.0.4)

UINT2NUM(SDL_WINDOW_MOUSE_CAPTURE)