pub trait StyleSheet {
    type Style: Default;

    fn active(&self, style: &Self::Style) -> Appearance;
    fn hovered(&self, style: &Self::Style) -> Appearance;
    fn dragging(&self, style: &Self::Style) -> Appearance;
}
Expand description

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

Required Associated Types§

type Style: Default

The supported style of the StyleSheet.

Required Methods§

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

Produces the style of an active slider.

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

Produces the style of an hovered slider.

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

Produces the style of a slider that is being dragged.

Implementors§