[][src]Struct pixel_widgets::widget::progress::Progress

pub struct Progress<'a, T> { /* fields omitted */ }

A progress bar that fill up according to some progress The bar part of the progress bar can be styled by selecting the child widget bar of the progress widget. Progress accepts the clip-bar flag for it's style. When the clip-bar flag is set, the bar is always rendered at full size and then clipped according to the progress. When clip-bar is not set, the bar itself is rendered with a size that matches the progress.

Implementations

impl<'a, T: 'a> Progress<'a, T>[src]

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

Construct a new Progress with a progress value in the range [0.0, 1.0]

Trait Implementations

impl<'a, T: 'a> IntoNode<'a, T> for Progress<'a, T>[src]

impl<'a, T: 'a> Widget<'a, T> for Progress<'a, T>[src]

Auto Trait Implementations

impl<'a, T> !RefUnwindSafe for Progress<'a, T>[src]

impl<'a, T> Send for Progress<'a, T>[src]

impl<'a, T> !Sync for Progress<'a, T>[src]

impl<'a, T> Unpin for Progress<'a, T>[src]

impl<'a, T> !UnwindSafe for Progress<'a, T>[src]

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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> Instrument 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.