Enum pixel_widgets::event::Event [−][src]
pub enum Event {
Press(Key),
Release(Key),
Modifiers(Modifiers),
Resize(f32, f32),
Motion(f32, f32),
Cursor(f32, f32),
Scroll(f32, f32),
Text(char),
Focus(bool),
Exit,
}Expand description
A user input event.
Variants
Press(Key)A button on some input device was pressed.
Release(Key)A button on some input device was released.
Modifiers(Modifiers)Modifiers were changed.
The window was resized to the given dimensions.
Some motion input was received (e.g. moving mouse or joystick axis).
The mouse cursor was moved to a location.
The mouse wheel or touchpad scroll gesture sent us some scroll event.
Text(char)Text input was received, usually via the keyboard.
Focus(bool)The window was focused or lost focus.
The application exited it’s main event loop
Trait Implementations
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> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for Timpl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> Any for T where
T: Any,
T: Any,
impl<T> CloneAny for T where
T: Any + Clone,
T: Any + Clone,
impl<T> DragDropId for T where
T: 'static + Copy + Send, [src]
T: 'static + Copy + Send,