[][src]Struct druid::widget::Slider

pub struct Slider { /* fields omitted */ }

A slider, allowing interactive update of a numeric value.

This slider implements Widget<f64>, and works on values clamped in the range min..max.

Implementations

impl Slider[src]

pub fn new() -> Slider[src]

Create a new Slider.

pub fn with_range(self, min: f64, max: f64) -> Self[src]

Builder-style method to set the range covered by this slider.

The default range is 0.0..1.0.

Trait Implementations

impl Clone for Slider[src]

impl Debug for Slider[src]

impl Default for Slider[src]

impl Widget<f64> for Slider[src]

Auto Trait Implementations

impl RefUnwindSafe for Slider

impl Send for Slider

impl Sync for Slider

impl Unpin for Slider

impl UnwindSafe for Slider

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> RoundFrom<T> for T

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.