pub struct RawPointerEventArgs { /* private fields */ }Expand description
A raw mouse (or other pointer) event.
Implementations§
Source§impl RawPointerEventArgs
impl RawPointerEventArgs
Sourcepub fn new(
device: Rc<dyn IInputDevice>,
timestamp: u64,
root: Rc<dyn IInputRoot>,
type_: RawPointerEventType,
position: Point,
input_modifiers: RawInputModifiers,
) -> Self
pub 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.
Sourcepub fn with_point(
device: Rc<dyn IInputDevice>,
timestamp: u64,
root: Rc<dyn IInputRoot>,
type_: RawPointerEventType,
point: RawPointerPoint,
input_modifiers: RawInputModifiers,
) -> Self
pub 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.
Sourcepub fn raw_pointer_id(&self) -> i64
pub fn raw_pointer_id(&self) -> i64
The raw pointer identifier.
pub fn set_raw_pointer_id(&self, value: i64)
Sourcepub fn point(&self) -> RawPointerPoint
pub fn point(&self) -> RawPointerPoint
The pointer properties and position, in client DIPs.
pub fn set_point(&self, value: RawPointerPoint)
pub fn set_position(&self, value: Point)
Sourcepub fn type_(&self) -> RawPointerEventType
pub fn type_(&self) -> RawPointerEventType
The type of the event.
pub fn set_type(&self, value: RawPointerEventType)
Sourcepub fn input_modifiers(&self) -> RawInputModifiers
pub fn input_modifiers(&self) -> RawInputModifiers
The input modifiers.
pub fn set_input_modifiers(&self, value: RawInputModifiers)
Sourcepub fn intermediate_points(&self) -> Option<IntermediatePoints>
pub fn intermediate_points(&self) -> Option<IntermediatePoints>
Points that were traversed by a pointer since the previous relevant event, only valid for Move and TouchUpdate.
pub fn set_intermediate_points(&self, value: Option<IntermediatePoints>)
The platform’s opaque cookie for the input event.
Sourcepub fn input_hit_test_result(
&self,
) -> (Option<Ref<InputElement>>, Option<Ref<InputElement>>)
pub fn input_hit_test_result( &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.
pub fn set_input_hit_test_result( &self, element: Option<Ref<InputElement>>, first_enabled_ancestor: Option<Ref<InputElement>>, )
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 RawPointerEventArgs
impl Deref for RawPointerEventArgs
Source§type Target = RawInputEventArgs
type Target = RawInputEventArgs
Source§fn deref(&self) -> &RawInputEventArgs
fn deref(&self) -> &RawInputEventArgs
Source§impl IRawInputEventArgs for RawPointerEventArgs
impl IRawInputEventArgs for RawPointerEventArgs
Source§fn as_raw_input_event_args(&self) -> &RawInputEventArgs
fn as_raw_input_event_args(&self) -> &RawInputEventArgs
Auto Trait Implementations§
impl !Freeze for RawPointerEventArgs
impl !RefUnwindSafe for RawPointerEventArgs
impl !Send for RawPointerEventArgs
impl !Sync for RawPointerEventArgs
impl !UnwindSafe for RawPointerEventArgs
impl Unpin for RawPointerEventArgs
impl UnsafeUnpin for RawPointerEventArgs
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more