Enum sdl2_sys::SDL_WindowFlags
source · [−]#[repr(u32)]
pub enum SDL_WindowFlags {
Show 22 variants
SDL_WINDOW_FULLSCREEN,
SDL_WINDOW_OPENGL,
SDL_WINDOW_SHOWN,
SDL_WINDOW_HIDDEN,
SDL_WINDOW_BORDERLESS,
SDL_WINDOW_RESIZABLE,
SDL_WINDOW_MINIMIZED,
SDL_WINDOW_MAXIMIZED,
SDL_WINDOW_INPUT_GRABBED,
SDL_WINDOW_INPUT_FOCUS,
SDL_WINDOW_MOUSE_FOCUS,
SDL_WINDOW_FULLSCREEN_DESKTOP,
SDL_WINDOW_FOREIGN,
SDL_WINDOW_ALLOW_HIGHDPI,
SDL_WINDOW_MOUSE_CAPTURE,
SDL_WINDOW_ALWAYS_ON_TOP,
SDL_WINDOW_SKIP_TASKBAR,
SDL_WINDOW_UTILITY,
SDL_WINDOW_TOOLTIP,
SDL_WINDOW_POPUP_MENU,
SDL_WINDOW_VULKAN,
SDL_WINDOW_METAL,
}
Expand description
\brief The flags on a window
\sa SDL_GetWindowFlags()
Variants
SDL_WINDOW_FULLSCREEN
< fullscreen window
SDL_WINDOW_OPENGL
< window usable with OpenGL context
SDL_WINDOW_SHOWN
< window is visible
SDL_WINDOW_HIDDEN
< window is not visible
SDL_WINDOW_BORDERLESS
< no window decoration
SDL_WINDOW_RESIZABLE
< window can be resized
SDL_WINDOW_MINIMIZED
< window is minimized
SDL_WINDOW_MAXIMIZED
< window is maximized
SDL_WINDOW_INPUT_GRABBED
< window has grabbed input focus
SDL_WINDOW_INPUT_FOCUS
< window has input focus
SDL_WINDOW_MOUSE_FOCUS
< window has mouse focus
SDL_WINDOW_FULLSCREEN_DESKTOP
SDL_WINDOW_FOREIGN
< window not created by SDL
SDL_WINDOW_ALLOW_HIGHDPI
< 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
< window has mouse captured (unrelated to INPUT_GRABBED)
SDL_WINDOW_ALWAYS_ON_TOP
< window should always be above others
SDL_WINDOW_SKIP_TASKBAR
< window should not be added to the taskbar
SDL_WINDOW_UTILITY
< window should be treated as a utility window
SDL_WINDOW_TOOLTIP
< window should be treated as a tooltip
SDL_WINDOW_POPUP_MENU
< window should be treated as a popup menu
SDL_WINDOW_VULKAN
< window usable for Vulkan surface
SDL_WINDOW_METAL
< window usable for Metal view
Trait Implementations
sourceimpl Clone for SDL_WindowFlags
impl Clone for SDL_WindowFlags
sourcefn clone(&self) -> SDL_WindowFlags
fn clone(&self) -> SDL_WindowFlags
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SDL_WindowFlags
impl Debug for SDL_WindowFlags
sourceimpl Hash for SDL_WindowFlags
impl Hash for SDL_WindowFlags
sourceimpl PartialEq<SDL_WindowFlags> for SDL_WindowFlags
impl PartialEq<SDL_WindowFlags> for SDL_WindowFlags
impl Copy for SDL_WindowFlags
impl Eq for SDL_WindowFlags
impl StructuralEq for SDL_WindowFlags
impl StructuralPartialEq for SDL_WindowFlags
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more