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: LayoutWidthTotal width (or height for vertical scrollbars) of the scrollbar in pixels
padding_left: LayoutPaddingLeftPadding of the scrollbar tracker, in pixels. The inner bar is width - padding pixels wide.
padding_right: LayoutPaddingRight§track: RectStyleStyle of the scrollbar background
(-webkit-scrollbar / -webkit-scrollbar-track / -webkit-scrollbar-track-piece combined)
thumb: RectStyleStyle of the scrollbar thumbs (the “up” / “down” arrows), (-webkit-scrollbar-thumb)
Styles the directional buttons on the scrollbar (-webkit-scrollbar-button)
corner: RectStyleIf two scrollbars are present, addresses the (usually) bottom corner
of the scrollable element, where two scrollbars might meet (-webkit-scrollbar-corner)
resizer: RectStyleAddresses 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 more