RawInputEventArgs
struct · ferroui-base · v0.5.0
struct RawInputEventArgs
A raw input event.
Raw input events are sent from the windowing subsystem to the input manager for processing: this gives an application the opportunity to pre-process the event. After pre-processing they are consumed by the relevant input device and turned into standard events.
Members
new
fn new(device: Rc<dyn IInputDevice>, timestamp: u64, root: Rc<dyn IInputRoot>) -> Self
Creates raw input event args.
timestamp is the time stamp of the input as reported by the
platform; root is the root from which the event originates.
device
fn device(self: &Self) -> &Rc<dyn IInputDevice>
The associated device.
root
fn root(self: &Self) -> &Rc<dyn IInputRoot>
The root from which the event originates.
handled
fn handled(self: &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.
set_handled
fn set_handled(self: &Self, value: bool)
Marks the event as handled or unhandled.
timestamp
fn timestamp(self: &Self) -> u64
The timestamp associated with the event.
set_timestamp
fn set_timestamp(self: &Self, value: u64)
Sets the timestamp associated with the event.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherIRawInputEventArgs
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.