Enum glfw::WindowEvent
source · pub enum WindowEvent {
Show 17 variants
Pos(i32, i32),
Size(i32, i32),
Close,
Refresh,
Focus(bool),
Iconify(bool),
FramebufferSize(i32, i32),
MouseButton(MouseButton, Action, Modifiers),
CursorPos(f64, f64),
CursorEnter(bool),
Scroll(f64, f64),
Key(Key, Scancode, Action, Modifiers),
Char(char),
CharModifiers(char, Modifiers),
FileDrop(Vec<PathBuf>),
Maximize(bool),
ContentScale(f32, f32),
}
Expand description
Window event messages.
Variants§
Pos(i32, i32)
Size(i32, i32)
Close
Refresh
Focus(bool)
Iconify(bool)
FramebufferSize(i32, i32)
MouseButton(MouseButton, Action, Modifiers)
CursorPos(f64, f64)
CursorEnter(bool)
Scroll(f64, f64)
Key(Key, Scancode, Action, Modifiers)
Char(char)
CharModifiers(char, Modifiers)
FileDrop(Vec<PathBuf>)
Maximize(bool)
ContentScale(f32, f32)
Trait Implementations§
source§impl Clone for WindowEvent
impl Clone for WindowEvent
source§fn clone(&self) -> WindowEvent
fn clone(&self) -> WindowEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WindowEvent
impl Debug for WindowEvent
source§impl PartialEq<WindowEvent> for WindowEvent
impl PartialEq<WindowEvent> for WindowEvent
source§fn eq(&self, other: &WindowEvent) -> bool
fn eq(&self, other: &WindowEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<WindowEvent> for WindowEvent
impl PartialOrd<WindowEvent> for WindowEvent
source§fn partial_cmp(&self, other: &WindowEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &WindowEvent) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more