Struct tui::widgets::LineGauge [−][src]
pub struct LineGauge<'a> { /* fields omitted */ }
A compact widget to display a task progress over a single line.
Examples:
LineGauge::default() .block(Block::default().borders(Borders::ALL).title("Progress")) .gauge_style(Style::default().fg(Color::White).bg(Color::Black).add_modifier(Modifier::BOLD)) .line_set(symbols::line::THICK) .ratio(0.4);
Implementations
impl<'a> LineGauge<'a>
[src]
impl<'a> LineGauge<'a>
[src]pub fn block(self, block: Block<'a>) -> Self
[src]
pub fn ratio(self, ratio: f64) -> Self
[src]
pub fn line_set(self, set: Set) -> Self
[src]
pub fn label<T>(self, label: T) -> Self where
T: Into<Spans<'a>>,
[src]
T: Into<Spans<'a>>,
pub fn style(self, style: Style) -> Self
[src]
pub fn gauge_style(self, style: Style) -> Self
[src]
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for LineGauge<'a>
impl<'a> RefUnwindSafe for LineGauge<'a>
impl<'a> UnwindSafe for LineGauge<'a>
impl<'a> UnwindSafe for LineGauge<'a>