[][src]Struct azul_css::ScrollbarInfo

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,
}

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: LayoutPaddingRighttrack: 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)

button: RectStyle

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

impl Clone for ScrollbarInfo[src]

impl Debug for ScrollbarInfo[src]

impl Default for ScrollbarInfo[src]

impl Eq for ScrollbarInfo[src]

impl Hash for ScrollbarInfo[src]

impl Ord for ScrollbarInfo[src]

impl PartialEq<ScrollbarInfo> for ScrollbarInfo[src]

impl PartialOrd<ScrollbarInfo> for ScrollbarInfo[src]

impl StructuralEq for ScrollbarInfo[src]

impl StructuralPartialEq for ScrollbarInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.