pub struct WheelInput {
pub pointer: Pointer,
pub modifiers: Modifiers,
pub delta: Vec2,
pub zoom: f32,
}Expand description
One wheel, scroll or pinch event of this pass.
Fields§
§pointer: Pointer§modifiers: Modifiers§delta: Vec2The motion in points, as egui gives it (positive: the content moves right and down); zero for a pinch.
zoom: f32A pinch’s zoom factor (above 1: in); 1 otherwise.
Implementations§
Trait Implementations§
Source§impl Clone for WheelInput
impl Clone for WheelInput
Source§fn clone(&self) -> WheelInput
fn clone(&self) -> WheelInput
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 WheelInput
impl Debug for WheelInput
Source§impl PartialEq for WheelInput
impl PartialEq for WheelInput
impl Copy for WheelInput
impl StructuralPartialEq for WheelInput
Auto Trait Implementations§
impl Freeze for WheelInput
impl RefUnwindSafe for WheelInput
impl Send for WheelInput
impl Sync for WheelInput
impl Unpin for WheelInput
impl UnsafeUnpin for WheelInput
impl UnwindSafe for WheelInput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more