FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RawPointerEventArgs

    struct · ferroui-base · v0.5.0

    struct RawPointerEventArgs
    

    A raw mouse (or other pointer) event.

    View source

    Members

    new

    fn new(device: Rc<dyn IInputDevice>, timestamp: u64, root: Rc<dyn IInputRoot>, type_: RawPointerEventType, position: Point, input_modifiers: RawInputModifiers) -> Self
    

    Creates raw pointer event args for a position in client coordinates.

    Source

    with_point

    fn with_point(device: Rc<dyn IInputDevice>, timestamp: u64, root: Rc<dyn IInputRoot>, type_: RawPointerEventType, point: RawPointerPoint, input_modifiers: RawInputModifiers) -> Self
    

    Creates raw pointer event args for a raw pointer point.

    Source

    raw_pointer_id

    fn raw_pointer_id(self: &Self) -> i64
    

    The raw pointer identifier.

    Source

    set_raw_pointer_id

    fn set_raw_pointer_id(self: &Self, value: i64)
    

    Source

    point

    fn point(self: &Self) -> RawPointerPoint
    

    The pointer properties and position, in client DIPs.

    Source

    set_point

    fn set_point(self: &Self, value: RawPointerPoint)
    

    Source

    position

    fn position(self: &Self) -> Point
    

    The mouse position, in client DIPs.

    Source

    set_position

    fn set_position(self: &Self, value: Point)
    

    Source

    type_

    fn type_(self: &Self) -> RawPointerEventType
    

    The type of the event.

    Source

    set_type

    fn set_type(self: &Self, value: RawPointerEventType)
    

    Source

    input_modifiers

    fn input_modifiers(self: &Self) -> RawInputModifiers
    

    The input modifiers.

    Source

    set_input_modifiers

    fn set_input_modifiers(self: &Self, value: RawInputModifiers)
    

    Source

    intermediate_points

    fn intermediate_points(self: &Self) -> Option<IntermediatePoints>
    

    Points that were traversed by a pointer since the previous relevant event, only valid for Move and TouchUpdate.

    Source

    set_intermediate_points

    fn set_intermediate_points(self: &Self, value: Option<IntermediatePoints>)
    

    Source

    fn platform_input_event_cookie(self: &Self) -> Option<Rc<dyn Any>>
    

    The platform's opaque cookie for the input event.

    Source

    fn set_platform_input_event_cookie(self: &Self, value: Option<Rc<dyn Any>>)
    

    Source

    input_hit_test_result

    fn input_hit_test_result(self: &Self) -> (Option<Ref<InputElement>>, Option<Ref<InputElement>>)
    

    The result of input hit testing the event: the element under the pointer and its first enabled ancestor. Set by the presentation source before the event is processed.

    Source

    set_input_hit_test_result

    fn set_input_hit_test_result(self: &Self, element: Option<Ref<InputElement>>, first_enabled_ancestor: Option<Ref<InputElement>>)
    

    Source

    Trait implementations

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

    Availability

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