Enum azul_winit::event::MouseScrollDelta [−][src]
pub enum MouseScrollDelta { LineDelta(f32, f32), PixelDelta(PhysicalPosition<f64>), }
Expand description
Describes a difference in the mouse scroll wheel state.
Variants
Expand description
Amount in lines or rows to scroll in the horizontal and vertical directions.
Positive values indicate movement forward (away from the user) or rightwards.
PixelDelta(PhysicalPosition<f64>)
Expand description
Amount in pixels to scroll in the horizontal and vertical direction.
Scroll events are expressed as a PixelDelta if supported by the device (eg. a touchpad) and platform.
Trait Implementations
impl Clone for MouseScrollDelta
[src]
impl Clone for MouseScrollDelta
[src]fn clone(&self) -> MouseScrollDelta
[src]
fn clone(&self) -> MouseScrollDelta
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for MouseScrollDelta
[src]
impl Debug for MouseScrollDelta
[src]impl<'de> Deserialize<'de> for MouseScrollDelta
[src]
impl<'de> Deserialize<'de> for MouseScrollDelta
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<MouseScrollDelta> for MouseScrollDelta
[src]
impl PartialEq<MouseScrollDelta> for MouseScrollDelta
[src]fn eq(&self, other: &MouseScrollDelta) -> bool
[src]
fn eq(&self, other: &MouseScrollDelta) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &MouseScrollDelta) -> bool
[src]
fn ne(&self, other: &MouseScrollDelta) -> bool
[src]This method tests for !=
.
impl Serialize for MouseScrollDelta
[src]
impl Serialize for MouseScrollDelta
[src]impl Copy for MouseScrollDelta
[src]
impl StructuralPartialEq for MouseScrollDelta
[src]
Auto Trait Implementations
impl RefUnwindSafe for MouseScrollDelta
impl Send for MouseScrollDelta
impl Sync for MouseScrollDelta
impl Unpin for MouseScrollDelta
impl UnwindSafe for MouseScrollDelta
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,