Trait iced_native::widget::progress_bar::Renderer[][src]

pub trait Renderer: Renderer {
    type Style: Default;

    const DEFAULT_HEIGHT: u16;

    fn draw(
        &self,
        bounds: Rectangle,
        range: RangeInclusive<f32>,
        value: f32,
        style: &Self::Style
    ) -> Self::Output; }

The renderer of a ProgressBar.

Your renderer will need to implement this trait before being able to use a ProgressBar in your user interface.

Associated Types

type Style: Default[src]

The style supported by this renderer.

Loading content...

Associated Constants

const DEFAULT_HEIGHT: u16[src]

The default height of a ProgressBar.

Loading content...

Required methods

fn draw(
    &self,
    bounds: Rectangle,
    range: RangeInclusive<f32>,
    value: f32,
    style: &Self::Style
) -> Self::Output
[src]

Draws a ProgressBar.

It receives:

Loading content...

Implementors

impl Renderer for Null[src]

type Style = ()

Loading content...