pub struct ScrollbarInfo {
pub width: LayoutWidth,
pub padding_left: LayoutPaddingLeft,
pub padding_right: LayoutPaddingRight,
pub track: RectStyle,
pub thumb: RectStyle,
pub button: RectStyle,
pub corner: RectStyle,
pub resizer: RectStyle,
}
Expand description
Holds info necessary for layouting / styling scrollbars (-webkit-scrollbar)
Fields§
§width: LayoutWidth
Total width (or height for vertical scrollbars) of the scrollbar in pixels
padding_left: LayoutPaddingLeft
Padding of the scrollbar tracker, in pixels. The inner bar is width - padding
pixels wide.
padding_right: LayoutPaddingRight
§track: RectStyle
Style of the scrollbar background
(-webkit-scrollbar
/ -webkit-scrollbar-track
/ -webkit-scrollbar-track-piece
combined)
thumb: RectStyle
Style of the scrollbar thumbs (the “up” / “down” arrows), (-webkit-scrollbar-thumb
)
Styles the directional buttons on the scrollbar (-webkit-scrollbar-button
)
corner: RectStyle
If two scrollbars are present, addresses the (usually) bottom corner
of the scrollable element, where two scrollbars might meet (-webkit-scrollbar-corner
)
resizer: RectStyle
Addresses the draggable resizing handle that appears above the
corner
at the bottom corner of some elements (-webkit-resizer
)
Trait Implementations§
Source§impl Clone for ScrollbarInfo
impl Clone for ScrollbarInfo
Source§fn clone(&self) -> ScrollbarInfo
fn clone(&self) -> ScrollbarInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ScrollbarInfo
impl Debug for ScrollbarInfo
Source§impl Default for ScrollbarInfo
impl Default for ScrollbarInfo
Source§impl Hash for ScrollbarInfo
impl Hash for ScrollbarInfo
Source§impl Ord for ScrollbarInfo
impl Ord for ScrollbarInfo
Source§fn cmp(&self, other: &ScrollbarInfo) -> Ordering
fn cmp(&self, other: &ScrollbarInfo) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ScrollbarInfo
impl PartialEq for ScrollbarInfo
Source§impl PartialOrd for ScrollbarInfo
impl PartialOrd for ScrollbarInfo
impl Eq for ScrollbarInfo
impl StructuralPartialEq for ScrollbarInfo
Auto Trait Implementations§
impl Freeze for ScrollbarInfo
impl RefUnwindSafe for ScrollbarInfo
impl Send for ScrollbarInfo
impl Sync for ScrollbarInfo
impl Unpin for ScrollbarInfo
impl UnwindSafe for ScrollbarInfo
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
)