Enum sdl2_sys::SDL_WindowFlags
source · #[repr(u32)]pub enum SDL_WindowFlags {
Show 23 variants
SDL_WINDOW_FULLSCREEN = 1,
SDL_WINDOW_OPENGL = 2,
SDL_WINDOW_SHOWN = 4,
SDL_WINDOW_HIDDEN = 8,
SDL_WINDOW_BORDERLESS = 16,
SDL_WINDOW_RESIZABLE = 32,
SDL_WINDOW_MINIMIZED = 64,
SDL_WINDOW_MAXIMIZED = 128,
SDL_WINDOW_MOUSE_GRABBED = 256,
SDL_WINDOW_INPUT_FOCUS = 512,
SDL_WINDOW_MOUSE_FOCUS = 1_024,
SDL_WINDOW_FULLSCREEN_DESKTOP = 4_097,
SDL_WINDOW_FOREIGN = 2_048,
SDL_WINDOW_ALLOW_HIGHDPI = 8_192,
SDL_WINDOW_MOUSE_CAPTURE = 16_384,
SDL_WINDOW_ALWAYS_ON_TOP = 32_768,
SDL_WINDOW_SKIP_TASKBAR = 65_536,
SDL_WINDOW_UTILITY = 131_072,
SDL_WINDOW_TOOLTIP = 262_144,
SDL_WINDOW_POPUP_MENU = 524_288,
SDL_WINDOW_KEYBOARD_GRABBED = 1_048_576,
SDL_WINDOW_VULKAN = 268_435_456,
SDL_WINDOW_METAL = 536_870_912,
}
Expand description
\brief The flags on a window
\sa SDL_GetWindowFlags()
Variants§
SDL_WINDOW_FULLSCREEN = 1
< fullscreen window
SDL_WINDOW_OPENGL = 2
< window usable with OpenGL context
SDL_WINDOW_SHOWN = 4
< window is visible
SDL_WINDOW_HIDDEN = 8
< window is not visible
SDL_WINDOW_BORDERLESS = 16
< no window decoration
SDL_WINDOW_RESIZABLE = 32
< window can be resized
SDL_WINDOW_MINIMIZED = 64
< window is minimized
SDL_WINDOW_MAXIMIZED = 128
< window is maximized
SDL_WINDOW_MOUSE_GRABBED = 256
< window has grabbed mouse input
SDL_WINDOW_INPUT_FOCUS = 512
< window has input focus
SDL_WINDOW_MOUSE_FOCUS = 1_024
< window has mouse focus
SDL_WINDOW_FULLSCREEN_DESKTOP = 4_097
SDL_WINDOW_FOREIGN = 2_048
< window not created by SDL
SDL_WINDOW_ALLOW_HIGHDPI = 8_192
< window should be created in high-DPI mode if supported. On macOS NSHighResolutionCapable must be set true in the application’s Info.plist for this to have any effect.
SDL_WINDOW_MOUSE_CAPTURE = 16_384
< window has mouse captured (unrelated to MOUSE_GRABBED)
SDL_WINDOW_ALWAYS_ON_TOP = 32_768
< window should always be above others
SDL_WINDOW_SKIP_TASKBAR = 65_536
< window should not be added to the taskbar
SDL_WINDOW_UTILITY = 131_072
< window should be treated as a utility window
SDL_WINDOW_TOOLTIP = 262_144
< window should be treated as a tooltip
SDL_WINDOW_POPUP_MENU = 524_288
< window should be treated as a popup menu
SDL_WINDOW_KEYBOARD_GRABBED = 1_048_576
< window has grabbed keyboard input
SDL_WINDOW_VULKAN = 268_435_456
< window usable for Vulkan surface
SDL_WINDOW_METAL = 536_870_912
< window usable for Metal view
Implementations§
source§impl SDL_WindowFlags
impl SDL_WindowFlags
pub const SDL_WINDOW_INPUT_GRABBED: SDL_WindowFlags = SDL_WindowFlags::SDL_WINDOW_MOUSE_GRABBED
Trait Implementations§
source§impl Clone for SDL_WindowFlags
impl Clone for SDL_WindowFlags
source§fn clone(&self) -> SDL_WindowFlags
fn clone(&self) -> SDL_WindowFlags
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Hash for SDL_WindowFlags
impl Hash for SDL_WindowFlags
source§impl PartialEq for SDL_WindowFlags
impl PartialEq for SDL_WindowFlags
source§fn eq(&self, other: &SDL_WindowFlags) -> bool
fn eq(&self, other: &SDL_WindowFlags) -> bool
self
and other
values to be equal, and is used
by ==
.