Struct tui::widgets::Gauge [] [src]

pub struct Gauge<'a> { /* fields omitted */ }

A widget to display a task progress.

Examples:

Gauge::default()
    .block(Block::default().borders(Borders::ALL).title("Progress"))
    .style(Style::default().fg(Color::White).bg(Color::Black).modifier(Modifier::Italic))
    .percent(20);

Methods

impl<'a> Gauge<'a>
[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl<'a> Default for Gauge<'a>
[src]

[src]

Returns the "default value" for a type. Read more

impl<'a> Widget for Gauge<'a>
[src]

[src]

Draws the current state of the widget in the given buffer. That the only method required to implement a custom widget. Read more

[src]

Helper method to quickly set the background of all cells inside the specified area.

[src]

Helper method that can be chained with a widget's builder methods to render it.