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

source

pub const SDL_WINDOW_INPUT_GRABBED: SDL_WindowFlags = SDL_WindowFlags::SDL_WINDOW_MOUSE_GRABBED

Trait Implementations§

source§

impl Clone for SDL_WindowFlags

source§

fn clone(&self) -> SDL_WindowFlags

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Hash for SDL_WindowFlags

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for SDL_WindowFlags

source§

fn eq(&self, other: &SDL_WindowFlags) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for SDL_WindowFlags

source§

impl Eq for SDL_WindowFlags

source§

impl StructuralPartialEq for SDL_WindowFlags

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.