pub struct RawTouchEventArgs { /* private fields */ }Expand description
A raw touch event.
Implementations§
Source§impl RawTouchEventArgs
impl RawTouchEventArgs
Sourcepub fn new(
device: Rc<dyn IInputDevice>,
timestamp: u64,
root: Rc<dyn IInputRoot>,
type_: RawPointerEventType,
position: Point,
input_modifiers: RawInputModifiers,
raw_pointer_id: i64,
) -> Self
pub fn new( device: Rc<dyn IInputDevice>, timestamp: u64, root: Rc<dyn IInputRoot>, type_: RawPointerEventType, position: Point, input_modifiers: RawInputModifiers, raw_pointer_id: i64, ) -> Self
Creates raw touch 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,
raw_pointer_id: i64,
) -> Self
pub fn with_point( device: Rc<dyn IInputDevice>, timestamp: u64, root: Rc<dyn IInputRoot>, type_: RawPointerEventType, point: RawPointerPoint, input_modifiers: RawInputModifiers, raw_pointer_id: i64, ) -> Self
Creates raw touch event args for a raw pointer point.
Methods from Deref<Target = RawPointerEventArgs>§
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 RawTouchEventArgs
impl Deref for RawTouchEventArgs
Source§type Target = RawPointerEventArgs
type Target = RawPointerEventArgs
Source§fn deref(&self) -> &RawPointerEventArgs
fn deref(&self) -> &RawPointerEventArgs
Source§impl IRawInputEventArgs for RawTouchEventArgs
impl IRawInputEventArgs for RawTouchEventArgs
Source§fn as_raw_input_event_args(&self) -> &RawInputEventArgs
fn as_raw_input_event_args(&self) -> &RawInputEventArgs
Auto Trait Implementations§
impl !Freeze for RawTouchEventArgs
impl !RefUnwindSafe for RawTouchEventArgs
impl !Send for RawTouchEventArgs
impl !Sync for RawTouchEventArgs
impl !UnwindSafe for RawTouchEventArgs
impl Unpin for RawTouchEventArgs
impl UnsafeUnpin for RawTouchEventArgs
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