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

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

The style supported by this renderer.

Loading content...

Associated Constants

const DEFAULT_HEIGHT: u16

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

Draws a ProgressBar.

It receives:

Loading content...

Implementors

impl Renderer for Null[src]

type Style = ()

Loading content...