Struct titik::Slider[][src]

pub struct Slider<MSG> { /* fields omitted */ }

A slider with value from 0.0 to 1.0

Implementations

impl<MSG> Slider<MSG>[src]

pub fn new(value: f32) -> Self[src]

create a new slider with value

pub fn set_value(&mut self, value: f32)[src]

set the value of this slider

pub fn use_thick_track(&mut self, use_thick: bool)[src]

set the use thick track, default is false

Trait Implementations

impl<MSG: Debug> Debug for Slider<MSG>[src]

impl<MSG> Default for Slider<MSG>[src]

impl<MSG> Widget<MSG> for Slider<MSG> where
    MSG: Debug + 'static, 
[src]

Auto Trait Implementations

impl<MSG> !RefUnwindSafe for Slider<MSG>

impl<MSG> !Send for Slider<MSG>

impl<MSG> !Sync for Slider<MSG>

impl<MSG> Unpin for Slider<MSG>

impl<MSG> !UnwindSafe for Slider<MSG>

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> Pointable for T

type Init = T

The type for initializers.

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.