pub struct WheelAxis {
pub pixels: f32,
pub notches: f32,
pub stop: bool,
}Expand description
One axis of a Wheel.
Fields§
§pixels: f32How far, in logical pixels: positive down or right, as content moves under a scroll offset that grows.
notches: f32How far in wheel notches, positive down or right:
axis_value120 over 120, so a high-resolution wheel gives
fractions. 0 for a touchpad.
stop: boolThe scroll on this axis ended: the fingers lifted
(wl_pointer.axis_stop).
Trait Implementations§
impl Copy for WheelAxis
impl StructuralPartialEq for WheelAxis
Auto Trait Implementations§
impl Forget for WheelAxis
impl Freeze for WheelAxis
impl Move for WheelAxis
impl RefUnwindSafe for WheelAxis
impl Send for WheelAxis
impl Sync for WheelAxis
impl Unpin for WheelAxis
impl UnsafeUnpin for WheelAxis
impl UnwindSafe for WheelAxis
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