Enum fui_system_core::ScrollDelta
source · pub enum ScrollDelta {
LineDelta(f32, f32),
PixelDelta(f32, f32),
}
Expand description
Scroll delta enum.
Variants§
LineDelta(f32, f32)
Amount of lines to scroll horizontally and vertically. This is generated by mouse wheel.
PixelDelta(f32, f32)
Amount of pixels to scroll horizontally and vertically. This is generated by touchpad.
Trait Implementations§
source§impl Clone for ScrollDelta
impl Clone for ScrollDelta
source§fn clone(&self) -> ScrollDelta
fn clone(&self) -> ScrollDelta
Returns a copy 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 ScrollDelta
impl Debug for ScrollDelta
source§impl PartialEq<ScrollDelta> for ScrollDelta
impl PartialEq<ScrollDelta> for ScrollDelta
source§fn eq(&self, other: &ScrollDelta) -> bool
fn eq(&self, other: &ScrollDelta) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.