pub struct PointerMoveCx {
pub pointer_id: PointerId,
pub position: Point,
pub position_local: Point,
pub position_window: Option<Point>,
pub tick_id: TickId,
pub pixels_per_point: f32,
pub velocity_window: Option<Point>,
pub buttons: MouseButtons,
pub modifiers: Modifiers,
pub pointer_type: PointerType,
}Expand description
Pointer move payload for component-owned pointer handlers.
Fields§
§pointer_id: PointerId§position: PointPointer position in the target widget’s untransformed layout space (ADR 0238).
position_local: PointPointer position in the target element’s local coordinate space (origin at (0, 0)).
This is derived as position - host.bounds().origin (ADR 0238).
position_window: Option<Point>Pointer position in window-local logical pixels (pre-mapping).
This is best-effort: events may arrive before the runtime has recorded a window snapshot.
tick_id: TickId§pixels_per_point: f32Pixels-per-point (a.k.a. window scale factor) for position.
velocity_window: Option<Point>Best-effort pointer velocity snapshot in window-local logical pixels per second (ADR 0243).
Notes:
- This is derived from the UI runtime’s pointer motion snapshots, not from per-element
state. It may be
Nonewhen monotonic timestamps are unavailable. - Components that need deterministic velocity for tests should treat
Noneas “unknown” and fall back to policy defaults.
modifiers: Modifiers§pointer_type: PointerTypeTrait Implementations§
Source§impl Clone for PointerMoveCx
impl Clone for PointerMoveCx
Source§fn clone(&self) -> PointerMoveCx
fn clone(&self) -> PointerMoveCx
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PointerMoveCx
impl Debug for PointerMoveCx
Source§impl PartialEq for PointerMoveCx
impl PartialEq for PointerMoveCx
impl Copy for PointerMoveCx
impl StructuralPartialEq for PointerMoveCx
Auto Trait Implementations§
impl Freeze for PointerMoveCx
impl RefUnwindSafe for PointerMoveCx
impl Send for PointerMoveCx
impl Sync for PointerMoveCx
impl Unpin for PointerMoveCx
impl UnsafeUnpin for PointerMoveCx
impl UnwindSafe for PointerMoveCx
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
Mutably borrows from an owned value. Read more