pub enum WheelDevice {
Auto,
Mouse,
Trackpad,
}Expand description
What the wheel events come from. egui does not say which device sent a wheel event; its unit is the cheapest hint (a mouse wheel sends lines, a trackpad points), not a reliable one (some mice and browsers send points).
Variants§
Auto
Lines are a wheel (Wheel), points a trackpad (Scroll).
Mouse
Every wheel event is a mouse wheel.
Trackpad
Every wheel event is a trackpad’s scroll.
Implementations§
Trait Implementations§
Source§impl Clone for WheelDevice
impl Clone for WheelDevice
Source§fn clone(&self) -> WheelDevice
fn clone(&self) -> WheelDevice
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 WheelDevice
impl Debug for WheelDevice
Source§impl Default for WheelDevice
impl Default for WheelDevice
Source§fn default() -> WheelDevice
fn default() -> WheelDevice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WheelDevice
impl<'de> Deserialize<'de> for WheelDevice
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for WheelDevice
impl Hash for WheelDevice
Source§impl PartialEq for WheelDevice
impl PartialEq for WheelDevice
Source§impl Serialize for WheelDevice
impl Serialize for WheelDevice
impl Copy for WheelDevice
impl Eq for WheelDevice
impl StructuralPartialEq for WheelDevice
Auto Trait Implementations§
impl Freeze for WheelDevice
impl RefUnwindSafe for WheelDevice
impl Send for WheelDevice
impl Sync for WheelDevice
impl Unpin for WheelDevice
impl UnsafeUnpin for WheelDevice
impl UnwindSafe for WheelDevice
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