pub enum Status {
Static,
Smoothing,
InTouch,
}Expand description
The current state of scrolling.
There are two important types of scroll input deviced:
- Discreen scroll wheels on a mouse
- Smooth scroll input from a trackpad
Scroll wheels will usually fire one single scroll event, so it is important that egui smooths it out over time.
On the contrary, trackpads usually provide smooth scroll input, and with kinetic scrolling (which on Mac is implemented by the OS) scroll events can arrive after the user lets go of the trackpad.
In either case, we consider use to be scrolling until there is no more scroll events expected.
This means there are a few different states we can be in:
- Not scrolling
- “Smooth scrolling” (low-pass filter of discreet scroll events)
- Trackpad-scrolling (we receive begin/end phases for these)
Variants§
Trait Implementations§
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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