pub trait ParamSliderExt {
    // Required methods
    fn disable_scroll_wheel(self) -> Self;
    fn set_style(self, style: ParamSliderStyle) -> Self;
    fn with_label(self, value: impl Into<String>) -> Self;
}
Expand description

Extension methods for ParamSlider handles.

Required Methods§

source

fn disable_scroll_wheel(self) -> Self

Don’t respond to scroll wheel events. Useful when this slider is used as part of a scrolling view.

source

fn set_style(self, style: ParamSliderStyle) -> Self

Change how the ParamSlider visualizes the current value.

source

fn with_label(self, value: impl Into<String>) -> Self

Manually set a fixed label for the slider instead of displaying the current value. This is currently not reactive.

Implementations on Foreign Types§

source§

impl ParamSliderExt for Handle<'_, ParamSlider>

source§

fn disable_scroll_wheel(self) -> Self

source§

fn set_style(self, style: ParamSliderStyle) -> Self

source§

fn with_label(self, value: impl Into<String>) -> Self

Implementors§