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]

Trait Implementations

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

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

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

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

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

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

Auto Trait Implementations

impl<'a> Send for Gauge<'a>

impl<'a> Sync for Gauge<'a>