pub struct RawPointerPoint {
pub position: Point,
pub twist: f32,
pub pressure: f32,
pub x_tilt: f32,
pub y_tilt: f32,
/* private fields */
}Expand description
The position and pen state of a raw pointer event.
Fields§
§position: PointPointer position, in client DIPs.
twist: f32§pressure: f32§x_tilt: f32§y_tilt: f32Implementations§
Source§impl RawPointerPoint
impl RawPointerPoint
Sourcepub fn contact_rect(&self) -> Rect
pub fn contact_rect(&self) -> Rect
The contact rectangle of the pointer; an empty rectangle at the pointer position unless set.
pub fn set_contact_rect(&mut self, value: Rect)
Trait Implementations§
Source§impl Clone for RawPointerPoint
impl Clone for RawPointerPoint
impl Copy for RawPointerPoint
Source§impl Debug for RawPointerPoint
impl Debug for RawPointerPoint
Source§impl Default for RawPointerPoint
impl Default for RawPointerPoint
Source§impl PartialEq for RawPointerPoint
impl PartialEq for RawPointerPoint
impl StructuralPartialEq for RawPointerPoint
Auto Trait Implementations§
impl Freeze for RawPointerPoint
impl RefUnwindSafe for RawPointerPoint
impl Send for RawPointerPoint
impl Sync for RawPointerPoint
impl Unpin for RawPointerPoint
impl UnsafeUnpin for RawPointerPoint
impl UnwindSafe for RawPointerPoint
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more