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 copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ScrollBarVisibility
impl Debug for ScrollBarVisibility
Source§impl Default for ScrollBarVisibility
impl Default for ScrollBarVisibility
Source§impl<'de> Deserialize<'de> for ScrollBarVisibility
impl<'de> Deserialize<'de> for ScrollBarVisibility
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ScrollBarVisibility
impl PartialEq for ScrollBarVisibility
Source§impl Serialize for ScrollBarVisibility
impl Serialize for ScrollBarVisibility
impl Copy for ScrollBarVisibility
impl Eq 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 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