[][src]Struct geng_ui::Slider

pub struct Slider { /* fields omitted */ }

Implementations

impl Slider[src]

pub fn new(geng: &Rc<Geng>, theme: &Rc<Theme>) -> Self[src]

pub fn ui<'a>(
    &'a mut self,
    value: f64,
    range: RangeInclusive<f64>,
    f: Box<dyn FnMut(f64) + 'a>
) -> impl Widget + 'a
[src]

Methods from Deref<Target = WidgetCore>

pub fn hovered(&self) -> bool[src]

pub fn captured(&self) -> bool[src]

pub fn position(&self) -> AABB<f64>[src]

Trait Implementations

impl Clone for Slider[src]

impl Deref for Slider[src]

type Target = WidgetCore

The resulting type after dereferencing.

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> DynClone for T where
    T: Clone
[src]

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

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

impl<T> SetParameter for T

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,