pub enum ScrollbarVisibility {
Always,
WhileScrolling,
OnHover,
Hidden,
}Expand description
When the scrollbar thumb/track is drawn at all (D-SCROLLBAR-1 — user- reported: during a screen-transition slide, an always-drawn thumb reads as a small opaque box detached from the rest of the sliding UI; fading it away when idle/off-screen sidesteps that entirely, not just on transitions).
Variants§
Always
Always visible whenever there’s overflow to scroll.
WhileScrolling
Hidden until a drag, wheel, or momentum-coast gesture is active; fades out shortly after the content settles.
OnHover
Visible while the pointer hovers the track, OR while actively
scrolling (falls back to WhileScrolling’s behavior with no mouse
— touch/mobile has no hover to trigger on).
Hidden
Never drawn — same effect as ScrollView::no_scrollbar.
Trait Implementations§
Source§impl Clone for ScrollbarVisibility
impl Clone for ScrollbarVisibility
Source§fn clone(&self) -> ScrollbarVisibility
fn clone(&self) -> ScrollbarVisibility
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 ScrollbarVisibility
Source§impl Debug for ScrollbarVisibility
impl Debug for ScrollbarVisibility
Source§impl Default for ScrollbarVisibility
impl Default for ScrollbarVisibility
Source§fn default() -> ScrollbarVisibility
fn default() -> ScrollbarVisibility
Returns the “default value” for a type. Read more
impl Eq for ScrollbarVisibility
Source§impl PartialEq for ScrollbarVisibility
impl PartialEq for ScrollbarVisibility
impl StructuralPartialEq for ScrollbarVisibility
Auto Trait Implementations§
impl Freeze for ScrollbarVisibility
impl RefUnwindSafe for ScrollbarVisibility
impl Send for ScrollbarVisibility
impl Sync for ScrollbarVisibility
impl Unpin for ScrollbarVisibility
impl UnsafeUnpin for ScrollbarVisibility
impl UnwindSafe for ScrollbarVisibility
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