[−][src]Trait iced_native::widget::progress_bar::Renderer
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
Loading content...Associated Constants
const DEFAULT_HEIGHT: u16
The default height of a ProgressBar
.
Required methods
fn draw(
&self,
bounds: Rectangle,
range: RangeInclusive<f32>,
value: f32,
style: &Self::Style
) -> Self::Output
&self,
bounds: Rectangle,
range: RangeInclusive<f32>,
value: f32,
style: &Self::Style
) -> Self::Output
Draws a ProgressBar
.
It receives:
- the bounds of the
ProgressBar
- the range of values of the
ProgressBar
- the current value of the
ProgressBar
- maybe a specific background of the
ProgressBar
- maybe a specific active color of the
ProgressBar