Enum rin::window::events::Event [−][src]
pub enum Event {
Show variants
MousePressed {
pos: Point<f64, U2>,
button: MouseButton,
mods: KeyModifiers,
},
MouseReleased {
pos: Point<f64, U2>,
button: MouseButton,
mods: KeyModifiers,
},
MouseMoved {
pos: Point<f64, U2>,
},
Scroll {
scroll: Matrix<f64, U2, U1, <DefaultAllocator as Allocator<f64, U2, U1>>::Buffer>,
},
KeyPressed {
key: Key,
mods: KeyModifiers,
repeat: bool,
},
KeyReleased {
key: Key,
},
Char {
character: char,
},
WindowMoved {
pos: Point<i32, U2>,
},
WindowResized {
size: Matrix<i32, U2, U1, <DefaultAllocator as Allocator<i32, U2, U1>>::Buffer>,
},
WindowClosing,
Dropped {
paths: Vec<PathBuf, Global>,
},
Update {
delta: f64,
},
FocusLost,
FocusGained,
}window events
Variants
Show fields
Fields of MousePressed
pos: Point<f64, U2>mods: KeyModifiersShow fields
Fields of MouseReleased
pos: Point<f64, U2>mods: KeyModifiersShow fields
Show fields
Fields of KeyPressed
Show fields
Fields of KeyReleased
key: KeyShow fields
Fields of Char
character: charShow fields
Show fields
Fields of Update
delta: f64Implementations
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<T> DowncastSync for T where
T: Any + Send + Sync, [src]
impl<T> DowncastSync for T where
T: Any + Send + Sync, [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]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]