pub struct RawTextInputEventArgs { /* private fields */ }Expand description
A raw text input event.
Implementations§
Methods from Deref<Target = RawInputEventArgs>§
Sourcepub fn device(&self) -> &Rc<dyn IInputDevice>
pub fn device(&self) -> &Rc<dyn IInputDevice>
The associated device.
Sourcepub fn root(&self) -> &Rc<dyn IInputRoot>
pub fn root(&self) -> &Rc<dyn IInputRoot>
The root from which the event originates.
Sourcepub fn handled(&self) -> bool
pub fn handled(&self) -> bool
Whether the event was handled.
If an event is not marked handled after processing, this event will be returned to the windowing subsystem for further processing.
Sourcepub fn set_handled(&self, value: bool)
pub fn set_handled(&self, value: bool)
Marks the event as handled or unhandled.
Sourcepub fn set_timestamp(&self, value: u64)
pub fn set_timestamp(&self, value: u64)
Sets the timestamp associated with the event.
Trait Implementations§
Source§impl Deref for RawTextInputEventArgs
impl Deref for RawTextInputEventArgs
Source§type Target = RawInputEventArgs
type Target = RawInputEventArgs
The resulting type after dereferencing.
Source§fn deref(&self) -> &RawInputEventArgs
fn deref(&self) -> &RawInputEventArgs
Dereferences the value.
Source§impl IRawInputEventArgs for RawTextInputEventArgs
impl IRawInputEventArgs for RawTextInputEventArgs
Source§fn as_raw_input_event_args(&self) -> &RawInputEventArgs
fn as_raw_input_event_args(&self) -> &RawInputEventArgs
The base raw input event args.
Auto Trait Implementations§
impl !Freeze for RawTextInputEventArgs
impl !RefUnwindSafe for RawTextInputEventArgs
impl !Send for RawTextInputEventArgs
impl !Sync for RawTextInputEventArgs
impl !UnwindSafe for RawTextInputEventArgs
impl Unpin for RawTextInputEventArgs
impl UnsafeUnpin for RawTextInputEventArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more