pub struct ScrollbarStyle {
pub horizontal: Option<ScrollbarInfo>,
pub vertical: Option<ScrollbarInfo>,
}
Expand description
Width and height of the scrollbars at the side of the text field.
This information is necessary in order to reserve space at the side of the text field so that the text doesn’t overlap the scrollbar. In some cases (when the scrollbar is set to “auto”), the scrollbar space is only taken up when the text overflows the rectangle itself.
Fields§
§horizontal: Option<ScrollbarInfo>
Vertical scrollbar style, if any
vertical: Option<ScrollbarInfo>
Horizontal scrollbar style, if any
Trait Implementations§
Source§impl Clone for ScrollbarStyle
impl Clone for ScrollbarStyle
Source§fn clone(&self) -> ScrollbarStyle
fn clone(&self) -> ScrollbarStyle
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 ScrollbarStyle
impl Debug for ScrollbarStyle
Source§impl Hash for ScrollbarStyle
impl Hash for ScrollbarStyle
Source§impl Ord for ScrollbarStyle
impl Ord for ScrollbarStyle
Source§fn cmp(&self, other: &ScrollbarStyle) -> Ordering
fn cmp(&self, other: &ScrollbarStyle) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ScrollbarStyle
impl PartialEq for ScrollbarStyle
Source§impl PartialOrd for ScrollbarStyle
impl PartialOrd for ScrollbarStyle
impl Eq for ScrollbarStyle
impl StructuralPartialEq for ScrollbarStyle
Auto Trait Implementations§
impl Freeze for ScrollbarStyle
impl RefUnwindSafe for ScrollbarStyle
impl Send for ScrollbarStyle
impl Sync for ScrollbarStyle
impl Unpin for ScrollbarStyle
impl UnwindSafe for ScrollbarStyle
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
)