Skip to main content

egui/data/input/
mouse_wheel_unit.rs

1/// The unit associated with the numeric value of a mouse wheel event
2#[derive(Clone, Copy, Debug, Eq, PartialEq)]
3#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
4pub enum MouseWheelUnit {
5    /// Number of ui points (logical pixels)
6    Point,
7
8    /// Number of lines
9    Line,
10
11    /// Number of pages
12    Page,
13}