Enum rinwindow::events::Event [−][src]
pub enum Event { MousePressed { pos: Pnt2<f64>, button: MouseButton, mods: KeyModifiers, }, MouseReleased { pos: Pnt2<f64>, button: MouseButton, mods: KeyModifiers, }, MouseMoved { pos: Pnt2<f64>, }, Scroll { scroll: Vec2<f64>, }, KeyPressed { key: Key, mods: KeyModifiers, repeat: bool, }, KeyReleased { key: Key, }, Char { character: char, }, WindowMoved { pos: Pnt2<i32>, }, WindowResized { size: Vec2<i32>, }, WindowClosing, Dropped { paths: Vec<PathBuf>, }, Update { delta: f64, }, FocusLost, FocusGained, }
Variants
MousePressed
Fields of MousePressed
pos: Pnt2<f64> | |
mods: KeyModifiers |
MouseReleased
Fields of MouseReleased
pos: Pnt2<f64> | |
mods: KeyModifiers |
MouseMoved
Fields of MouseMoved
pos: Pnt2<f64> |
Scroll
Fields of Scroll
scroll: Vec2<f64> |
KeyPressed
Fields of KeyPressed
key: Key | |
mods: KeyModifiers | |
repeat: bool |
KeyReleased
Fields of KeyReleased
key: Key |
Char
Fields of Char
character: char |
WindowMoved
Fields of WindowMoved
pos: Pnt2<i32> |
WindowResized
Fields of WindowResized
size: Vec2<i32> |
WindowClosing
Dropped
Fields of Dropped
paths: Vec<PathBuf> |
Update
Fields of Update
delta: f64 |
FocusLost
FocusGained
Methods
impl Event
[src]
impl Event
pub fn is_key_event(&self) -> bool
[src]
pub fn is_key_event(&self) -> bool
pub fn is_key_pressed_event(&self) -> bool
[src]
pub fn is_key_pressed_event(&self) -> bool
pub fn is_key_released_event(&self) -> bool
[src]
pub fn is_key_released_event(&self) -> bool
pub fn is_char_event(&self) -> bool
[src]
pub fn is_char_event(&self) -> bool
pub fn is_mouse_event(&self) -> bool
[src]
pub fn is_mouse_event(&self) -> bool
pub fn is_mouse_pressed_event(&self) -> bool
[src]
pub fn is_mouse_pressed_event(&self) -> bool
pub fn is_mouse_released_event(&self) -> bool
[src]
pub fn is_mouse_released_event(&self) -> bool
pub fn is_mouse_moved_event(&self) -> bool
[src]
pub fn is_mouse_moved_event(&self) -> bool
pub fn is_scroll_event(&self) -> bool
[src]
pub fn is_scroll_event(&self) -> bool
pub fn is_window_event(&self) -> bool
[src]
pub fn is_window_event(&self) -> bool
pub fn is_window_moved_event(&self) -> bool
[src]
pub fn is_window_moved_event(&self) -> bool
pub fn is_window_resized_event(&self) -> bool
[src]
pub fn is_window_resized_event(&self) -> bool
pub fn is_window_closing_event(&self) -> bool
[src]
pub fn is_window_closing_event(&self) -> bool
pub fn is_update_event(&self) -> bool
[src]
pub fn is_update_event(&self) -> bool
pub fn is_dropped_event(&self) -> bool
[src]
pub fn is_dropped_event(&self) -> bool
Trait Implementations
impl Clone for Event
[src]
impl Clone for Event
fn clone(&self) -> Event
[src]
fn clone(&self) -> Event
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Event
[src]
impl Debug for Event
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Event
[src]
impl PartialEq for Event