Enum sdl2_sys::SDL_WindowEventID

source ·
#[repr(u32)]
pub enum SDL_WindowEventID {
Show 19 variants SDL_WINDOWEVENT_NONE = 0, SDL_WINDOWEVENT_SHOWN = 1, SDL_WINDOWEVENT_HIDDEN = 2, SDL_WINDOWEVENT_EXPOSED = 3, SDL_WINDOWEVENT_MOVED = 4, SDL_WINDOWEVENT_RESIZED = 5, SDL_WINDOWEVENT_SIZE_CHANGED = 6, SDL_WINDOWEVENT_MINIMIZED = 7, SDL_WINDOWEVENT_MAXIMIZED = 8, SDL_WINDOWEVENT_RESTORED = 9, SDL_WINDOWEVENT_ENTER = 10, SDL_WINDOWEVENT_LEAVE = 11, SDL_WINDOWEVENT_FOCUS_GAINED = 12, SDL_WINDOWEVENT_FOCUS_LOST = 13, SDL_WINDOWEVENT_CLOSE = 14, SDL_WINDOWEVENT_TAKE_FOCUS = 15, SDL_WINDOWEVENT_HIT_TEST = 16, SDL_WINDOWEVENT_ICCPROF_CHANGED = 17, SDL_WINDOWEVENT_DISPLAY_CHANGED = 18,
}
Expand description

\brief Event subtype for window events

Variants§

§

SDL_WINDOWEVENT_NONE = 0

< Never used

§

SDL_WINDOWEVENT_SHOWN = 1

< Window has been shown

§

SDL_WINDOWEVENT_HIDDEN = 2

< Window has been hidden

§

SDL_WINDOWEVENT_EXPOSED = 3

< Window has been exposed and should be redrawn

§

SDL_WINDOWEVENT_MOVED = 4

< Window has been moved to data1, data2

§

SDL_WINDOWEVENT_RESIZED = 5

< Window has been resized to data1xdata2

§

SDL_WINDOWEVENT_SIZE_CHANGED = 6

< The window size has changed, either as a result of an API call or through the system or user changing the window size.

§

SDL_WINDOWEVENT_MINIMIZED = 7

< Window has been minimized

§

SDL_WINDOWEVENT_MAXIMIZED = 8

< Window has been maximized

§

SDL_WINDOWEVENT_RESTORED = 9

< Window has been restored to normal size and position

§

SDL_WINDOWEVENT_ENTER = 10

< Window has gained mouse focus

§

SDL_WINDOWEVENT_LEAVE = 11

< Window has lost mouse focus

§

SDL_WINDOWEVENT_FOCUS_GAINED = 12

< Window has gained keyboard focus

§

SDL_WINDOWEVENT_FOCUS_LOST = 13

< Window has lost keyboard focus

§

SDL_WINDOWEVENT_CLOSE = 14

< The window manager requests that the window be closed

§

SDL_WINDOWEVENT_TAKE_FOCUS = 15

< Window is being offered a focus (should SetWindowInputFocus() on itself or a subwindow, or ignore)

§

SDL_WINDOWEVENT_HIT_TEST = 16

< Window had a hit test that wasn’t SDL_HITTEST_NORMAL.

§

SDL_WINDOWEVENT_ICCPROF_CHANGED = 17

< The ICC profile of the window’s display has changed.

§

SDL_WINDOWEVENT_DISPLAY_CHANGED = 18

< Window has been moved to display data1.

Trait Implementations§

source§

impl Clone for SDL_WindowEventID

source§

fn clone(&self) -> SDL_WindowEventID

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_WindowEventID

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_WindowEventID

source§

fn eq(&self, other: &SDL_WindowEventID) -> 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_WindowEventID

source§

impl Eq for SDL_WindowEventID

source§

impl StructuralPartialEq for SDL_WindowEventID

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.