Skip to main content

SliderPresenter

Trait SliderPresenter 

Source
pub trait SliderPresenter {
    // Required methods
    fn root(&self) -> FlexBox;
    fn metrics(&self) -> SliderPresenterMetrics;
    fn layout(&self, state: SliderVisualState, length: f32);
    fn apply(
        &self,
        theme: Theme,
        state: SliderVisualState,
        colors: Option<SliderColors>,
    );
}

Required Methods§

Source

fn root(&self) -> FlexBox

Source

fn metrics(&self) -> SliderPresenterMetrics

Source

fn layout(&self, state: SliderVisualState, length: f32)

Source

fn apply( &self, theme: Theme, state: SliderVisualState, colors: Option<SliderColors>, )

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§