Enum rat_widget::scrolled::ScrollbarType
source · pub enum ScrollbarType {
Show,
Minimal,
NoRender,
}Expand description
Scrollbar behaviour if no scrolling is needed.
If a widget has a scrollbar set, layout_scroll always reserves
space for the scrollbar. This makes calculating any layout much
easier. If the widget wants to allow switching of the scrollbar
completely it should use an Option<Scroll>.
Variants§
Show
Always renders the scrollbar recognizable as a scrollbar.
Minimal
If the scrollbar is not needed, the area is filled with the no_symbol, but the required space is still reserved for the scrollbar.
NoRender
If the scrollbar is not needed, the area is not rendered, but the area is still reserved for the scrollbar. The widget is responsible to render something in that area. This works fine if there is a regular border in place, otherwise filling it with the default style should do the trick as well.
Trait Implementations§
source§impl Clone for ScrollbarType
impl Clone for ScrollbarType
source§fn clone(&self) -> ScrollbarType
fn clone(&self) -> ScrollbarType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ScrollbarType
impl Debug for ScrollbarType
source§impl Default for ScrollbarType
impl Default for ScrollbarType
source§fn default() -> ScrollbarType
fn default() -> ScrollbarType
source§impl PartialEq for ScrollbarType
impl PartialEq for ScrollbarType
impl Copy for ScrollbarType
impl Eq for ScrollbarType
impl StructuralPartialEq for ScrollbarType
Auto Trait Implementations§
impl Freeze for ScrollbarType
impl RefUnwindSafe for ScrollbarType
impl Send for ScrollbarType
impl Sync for ScrollbarType
impl Unpin for ScrollbarType
impl UnwindSafe for ScrollbarType
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
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)
clone_to_uninit)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>
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>
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