pub trait StyleSheet {
    type Style: Default;

    // Required methods
    fn active(&self, style: &Self::Style) -> Scrollbar;
    fn hovered(&self, style: &Self::Style) -> Scrollbar;

    // Provided methods
    fn dragging(&self, style: &Self::Style) -> Scrollbar { ... }
    fn active_horizontal(&self, style: &Self::Style) -> Scrollbar { ... }
    fn hovered_horizontal(&self, style: &Self::Style) -> Scrollbar { ... }
    fn dragging_horizontal(&self, style: &Self::Style) -> Scrollbar { ... }
}
Expand description

A set of rules that dictate the style of a scrollable.

Required Associated Types§

type Style: Default

The supported style of the StyleSheet.

Required Methods§

fn active(&self, style: &Self::Style) -> Scrollbar

Produces the style of an active scrollbar.

fn hovered(&self, style: &Self::Style) -> Scrollbar

Produces the style of a hovered scrollbar.

Provided Methods§

fn dragging(&self, style: &Self::Style) -> Scrollbar

Produces the style of a scrollbar that is being dragged.

fn active_horizontal(&self, style: &Self::Style) -> Scrollbar

Produces the style of an active horizontal scrollbar.

fn hovered_horizontal(&self, style: &Self::Style) -> Scrollbar

Produces the style of a hovered horizontal scrollbar.

fn dragging_horizontal(&self, style: &Self::Style) -> Scrollbar

Produces the style of a horizontal scrollbar that is being dragged.

Implementors§