pub enum ScrollIncrementType {
Line,
Page,
}Expand description
Describes the type of scroll increment that will be performed by a
ScrollAction on a Scrollable.
This is used to configure a ScrollIncrementDetails object to pass to a
ScrollIncrementCalculator function on a Scrollable.
This indicates the intent of the scroll, not necessarily the size. Not all scrollable areas will have the concept of a “line” or “page”, but they can respond to the different standard key bindings that cause scrolling, which are bound to keys that people use to indicate a “line” scroll (e.g. control-arrowDown keys) or a “page” scroll (e.g. pageDown key). It is recommended that at least the relative magnitudes of the scrolls match expectations.
Variants§
Line
Indicates that the ScrollIncrementCalculator should return the scroll
distance it should move when the user requests to scroll by a “line”.
The distance a “line” scrolls refers to what should happen when the key
binding for “scroll down/up by a line” is triggered. It’s up to the
ScrollIncrementCalculator function to decide what that means for a
particular scrollable.
Page
Indicates that the ScrollIncrementCalculator should return the scroll
distance it should move when the user requests to scroll by a “page”.
The distance a “page” scrolls refers to what should happen when the key
binding for “scroll down/up by a page” is triggered. It’s up to the
ScrollIncrementCalculator function to decide what that means for a
particular scrollable.
Trait Implementations§
Source§impl Clone for ScrollIncrementType
impl Clone for ScrollIncrementType
impl Copy for ScrollIncrementType
Source§impl Debug for ScrollIncrementType
impl Debug for ScrollIncrementType
impl Eq for ScrollIncrementType
Source§impl Hash for ScrollIncrementType
impl Hash for ScrollIncrementType
Source§impl PartialEq for ScrollIncrementType
impl PartialEq for ScrollIncrementType
impl StructuralPartialEq for ScrollIncrementType
Auto Trait Implementations§
impl Forget for ScrollIncrementType
impl Freeze for ScrollIncrementType
impl Move for ScrollIncrementType
impl RefUnwindSafe for ScrollIncrementType
impl Send for ScrollIncrementType
impl Sync for ScrollIncrementType
impl Unpin for ScrollIncrementType
impl UnsafeUnpin for ScrollIncrementType
impl UnwindSafe for ScrollIncrementType
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.