pub enum ScrollBarVisibility {
AlwaysHidden,
VisibleWhenNeeded,
AlwaysVisible,
}Expand description
Indicate whether the horizontal and vertical scroll bars must be always visible, hidden or visible when needed.
Variants§
AlwaysHidden
Hide scroll bar even if they are needed.
You can still scroll, with the scroll-wheel and by dragging the contents, but there is no visual indication of how far you have scrolled.
VisibleWhenNeeded
Show scroll bars only when the content size exceeds the container, i.e. when there is any need to scroll.
This is the default.
AlwaysVisible
Always show the scroll bar, even if the contents fit in the container and there is no need to scroll.
Implementations§
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
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
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more