Struct rute::auto::input_event::InputEvent
source · pub struct InputEvent<'a> { /* private fields */ }
Expand description
Notice these docs are heavy WIP and not very relevent yet
Licence
The documentation is an adoption of the original Qt Documentation and provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Implementations
sourceimpl<'a> InputEvent<'a>
impl<'a> InputEvent<'a>
sourcepub fn modifiers(&self) -> KeyboardModifiers
pub fn modifiers(&self) -> KeyboardModifiers
Returns the keyboard modifier flags that existed immediately before the event occurred.
See also: [GuiApplication::keyboard_modifiers
]
pub fn set_modifiers(&self, amodifiers: KeyboardModifiers) -> &Self
sourcepub fn timestamp(&self) -> u64
pub fn timestamp(&self) -> u64
Returns the window system’s timestamp for this event. It will normally be in milliseconds since some arbitrary point in time, such as the time when the system was started.
pub fn set_timestamp(&self, atimestamp: u64) -> &Self
Trait Implementations
sourceimpl<'a> Clone for InputEvent<'a>
impl<'a> Clone for InputEvent<'a>
sourcefn clone(&self) -> InputEvent<'a>
fn clone(&self) -> InputEvent<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<'a> EventTrait<'a> for InputEvent<'a>
impl<'a> InputEventTrait<'a> for InputEvent<'a>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for InputEvent<'a>
impl<'a> !Send for InputEvent<'a>
impl<'a> !Sync for InputEvent<'a>
impl<'a> Unpin for InputEvent<'a>
impl<'a> !UnwindSafe for InputEvent<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more