pub struct WheelSample {
pub at: Pos2,
pub scroll: ScrollPx,
pub shift: Shift,
}Expand description
One wheel notch, in canvas-relative CSS pixels. A trackpad pinch arrives
as a ctrl-held wheel and is not told apart: both zoom.
Fields§
§at: Pos2§scroll: ScrollPx§shift: ShiftTrait Implementations§
Source§impl Clone for WheelSample
impl Clone for WheelSample
Source§fn clone(&self) -> WheelSample
fn clone(&self) -> WheelSample
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 WheelSample
impl Debug for WheelSample
Source§impl PartialEq for WheelSample
impl PartialEq for WheelSample
impl Copy for WheelSample
impl StructuralPartialEq for WheelSample
Auto Trait Implementations§
impl Freeze for WheelSample
impl RefUnwindSafe for WheelSample
impl Send for WheelSample
impl Sync for WheelSample
impl Unpin for WheelSample
impl UnsafeUnpin for WheelSample
impl UnwindSafe for WheelSample
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