cushy::widgets::slider

Trait Slidable

source
pub trait Slidable<T>: IntoDynamic<T> + Sized
where T: SliderValue,
{ // Provided methods fn slider(self) -> Slider<T> where T::Value: Ranged { ... } fn slider_between( self, min: impl IntoValue<T::Value>, max: impl IntoValue<T::Value>, ) -> Slider<T> { ... } }
Expand description

A value that can be used in a Slider widget.

Provided Methods§

source

fn slider(self) -> Slider<T>
where T::Value: Ranged,

Returns a new slider over the full range of the type.

source

fn slider_between( self, min: impl IntoValue<T::Value>, max: impl IntoValue<T::Value>, ) -> Slider<T>

Returns a new slider using the value of self. The slider will be limited to values between min and max.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<U, T> Slidable<U> for T
where T: IntoDynamic<U>, U: SliderValue,