Enum rin_window::events::Event [−][src]
pub enum Event {}Show variants
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,
window events
Variants
Show fields
Fields of MousePressed
pos: Pnt2<f64>
mods: KeyModifiers
Show fields
Fields of MouseReleased
pos: Pnt2<f64>
mods: KeyModifiers
Show fields
Fields of KeyPressed
Show fields
Fields of KeyReleased
key: Key
Show fields
Fields of Char
character: char
Show fields
Fields of Update
delta: f64
Implementations
impl Event
[src]
impl Event
[src]pub fn is_key_event(&self) -> bool
[src]
pub fn is_key_pressed_event(&self) -> bool
[src]
pub fn is_key_released_event(&self) -> bool
[src]
pub fn is_char_event(&self) -> bool
[src]
pub fn is_mouse_event(&self) -> bool
[src]
pub fn is_mouse_pressed_event(&self) -> bool
[src]
pub fn is_mouse_released_event(&self) -> bool
[src]
pub fn is_mouse_moved_event(&self) -> bool
[src]
pub fn is_scroll_event(&self) -> bool
[src]
pub fn is_window_event(&self) -> bool
[src]
pub fn is_window_moved_event(&self) -> bool
[src]
pub fn is_window_resized_event(&self) -> bool
[src]
pub fn is_window_closing_event(&self) -> bool
[src]
pub fn is_update_event(&self) -> bool
[src]
pub fn is_dropped_event(&self) -> bool
[src]
Trait Implementations
impl StructuralPartialEq for Event
[src]
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]