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
impl Clone for SDL_WindowEventID
source§fn clone(&self) -> SDL_WindowEventID
fn clone(&self) -> SDL_WindowEventID
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_WindowEventID
impl Hash for SDL_WindowEventID
source§impl PartialEq for SDL_WindowEventID
impl PartialEq for SDL_WindowEventID
source§fn eq(&self, other: &SDL_WindowEventID) -> bool
fn eq(&self, other: &SDL_WindowEventID) -> bool
self
and other
values to be equal, and is used
by ==
.