RawPointerEventArgs
struct · ferroui-base · v0.5.0
struct RawPointerEventArgs
A raw mouse (or other pointer) event.
Members
newwith_pointraw_pointer_idset_raw_pointer_idpointset_pointpositionset_positiontype_set_typeinput_modifiersset_input_modifiersintermediate_pointsset_intermediate_pointsplatform_input_event_cookieset_platform_input_event_cookieinput_hit_test_resultset_input_hit_test_result
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.
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.
raw_pointer_id
fn raw_pointer_id(self: &Self) -> i64
The raw pointer identifier.
set_raw_pointer_id
fn set_raw_pointer_id(self: &Self, value: i64)
point
fn point(self: &Self) -> RawPointerPoint
The pointer properties and position, in client DIPs.
set_point
fn set_point(self: &Self, value: RawPointerPoint)
position
fn position(self: &Self) -> Point
The mouse position, in client DIPs.
set_position
fn set_position(self: &Self, value: Point)
type_
fn type_(self: &Self) -> RawPointerEventType
The type of the event.
set_type
fn set_type(self: &Self, value: RawPointerEventType)
input_modifiers
fn input_modifiers(self: &Self) -> RawInputModifiers
The input modifiers.
set_input_modifiers
fn set_input_modifiers(self: &Self, value: RawInputModifiers)
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.
set_intermediate_points
fn set_intermediate_points(self: &Self, value: Option<IntermediatePoints>)
platform_input_event_cookie
fn platform_input_event_cookie(self: &Self) -> Option<Rc<dyn Any>>
The platform's opaque cookie for the input event.
set_platform_input_event_cookie
fn set_platform_input_event_cookie(self: &Self, value: Option<Rc<dyn Any>>)
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.
set_input_hit_test_result
fn set_input_hit_test_result(self: &Self, element: Option<Ref<InputElement>>, first_enabled_ancestor: Option<Ref<InputElement>>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefIRawInputEventArgs
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.