Enum egui::containers::scroll_area::ScrollBarVisibility
source · 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 PartialEq for ScrollBarVisibility
impl PartialEq 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)