#[repr(u8)]pub enum ScrollbarComponent {
VerticalTrack = 0,
VerticalThumb = 1,
HorizontalTrack = 2,
HorizontalThumb = 3,
}Expand description
Scrollbar component type identifier.
Each scrollable container can have up to 2 scrollbars (vertical + horizontal), and each scrollbar has 2 main hit regions (track + thumb).
Future extensions could add:
UpButton,DownButton,LeftButton,RightButtonfor scroll arrowsPageUp,PageDownfor page-scroll regions
Variants§
VerticalTrack = 0
The vertical scrollbar track (background area)
VerticalThumb = 1
The vertical scrollbar thumb (draggable handle)
HorizontalTrack = 2
The horizontal scrollbar track (background area)
HorizontalThumb = 3
The horizontal scrollbar thumb (draggable handle)
Implementations§
Trait Implementations§
Source§impl Clone for ScrollbarComponent
impl Clone for ScrollbarComponent
Source§fn clone(&self) -> ScrollbarComponent
fn clone(&self) -> ScrollbarComponent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ScrollbarComponent
Source§impl Debug for ScrollbarComponent
impl Debug for ScrollbarComponent
impl Eq for ScrollbarComponent
Source§impl Hash for ScrollbarComponent
impl Hash for ScrollbarComponent
Source§impl Ord for ScrollbarComponent
impl Ord for ScrollbarComponent
Source§fn cmp(&self, other: &ScrollbarComponent) -> Ordering
fn cmp(&self, other: &ScrollbarComponent) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ScrollbarComponent
impl PartialEq for ScrollbarComponent
Source§impl PartialOrd for ScrollbarComponent
impl PartialOrd for ScrollbarComponent
impl StructuralPartialEq for ScrollbarComponent
Auto Trait Implementations§
impl Freeze for ScrollbarComponent
impl RefUnwindSafe for ScrollbarComponent
impl Send for ScrollbarComponent
impl Sync for ScrollbarComponent
impl Unpin for ScrollbarComponent
impl UnsafeUnpin for ScrollbarComponent
impl UnwindSafe for ScrollbarComponent
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