FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    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.

    Source

    device

    fn device(self: &Self) -> &Rc<dyn IInputDevice>
    

    The associated device.

    Source

    root

    fn root(self: &Self) -> &Rc<dyn IInputRoot>
    

    The root from which the event originates.

    Source

    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.

    Source

    set_handled

    fn set_handled(self: &Self, value: bool)
    

    Marks the event as handled or unhandled.

    Source

    timestamp

    fn timestamp(self: &Self) -> u64
    

    The timestamp associated with the event.

    Source

    set_timestamp

    fn set_timestamp(self: &Self, value: u64)
    

    Sets the timestamp associated with the event.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither
    • IRawInputEventArgs

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.