pub trait StyleSheet {
    type Style: Default;

    // Required methods
    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 ModRangeInput.

Required Associated Types§

source

type Style: Default

The supported style of the StyleSheet.

Required Methods§

source

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

Produces the style of an active ModRangeInput.

source

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

Produces the style of a hovered ModRangeInput.

source

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

Produces the style of a ModRangeInput that is being dragged.

Implementations on Foreign Types§

source§

impl StyleSheet for Theme

§

type Style = ModRangeInput

source§

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

source§

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

source§

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

Implementors§