pub struct WheelCx {
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 delta: Point,
pub delta_window: Option<Point>,
pub modifiers: Modifiers,
pub pointer_type: PointerType,
}Expand description
Wheel payload for component-owned wheel 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.
delta: PointWheel delta mapped into the target widget’s untransformed layout space (ADR 0238).
delta_window: Option<Point>Wheel delta in window-local logical pixels (pre-mapping).
modifiers: Modifiers§pointer_type: PointerTypeTrait Implementations§
impl Copy for WheelCx
impl StructuralPartialEq for WheelCx
Auto Trait Implementations§
impl Freeze for WheelCx
impl RefUnwindSafe for WheelCx
impl Send for WheelCx
impl Sync for WheelCx
impl Unpin for WheelCx
impl UnsafeUnpin for WheelCx
impl UnwindSafe for WheelCx
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