Enum sdl2_sys::SDL_WindowFlags
source · #[repr(u32)]pub enum SDL_WindowFlags {
Show 21 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_INPUT_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_VULKAN = 268_435_456,
}
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_INPUT_GRABBED = 256
< window has grabbed input focus
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 INPUT_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_VULKAN = 268_435_456
< window usable for Vulkan surface
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 Debug for SDL_WindowFlags
impl Debug for SDL_WindowFlags
source§impl Hash for SDL_WindowFlags
impl Hash for SDL_WindowFlags
source§impl PartialEq for SDL_WindowFlags
impl PartialEq for SDL_WindowFlags
impl Copy for SDL_WindowFlags
impl Eq for SDL_WindowFlags
impl StructuralPartialEq for SDL_WindowFlags
Auto Trait Implementations§
impl Freeze for SDL_WindowFlags
impl RefUnwindSafe for SDL_WindowFlags
impl Send for SDL_WindowFlags
impl Sync for SDL_WindowFlags
impl Unpin for SDL_WindowFlags
impl UnwindSafe for SDL_WindowFlags
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)