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")) .gauge_style(Style::default().fg(Color::White).bg(Color::Black).add_modifier(Modifier::ITALIC)) .percent(20);
Implementations
impl<'a> Gauge<'a>
[src]
impl<'a> Gauge<'a>
[src]pub fn block(self, block: Block<'a>) -> Gauge<'a>
[src]
pub fn percent(self, percent: u16) -> Gauge<'a>
[src]
pub fn ratio(self, ratio: f64) -> Gauge<'a>
[src]
Sets ratio ([0.0, 1.0]) directly.
pub fn label<T>(self, label: T) -> Gauge<'a> where
T: Into<Span<'a>>,
[src]
T: Into<Span<'a>>,
pub fn style(self, style: Style) -> Gauge<'a>
[src]
pub fn gauge_style(self, style: Style) -> Gauge<'a>
[src]
pub fn use_unicode(self, unicode: bool) -> Gauge<'a>
[src]
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Gauge<'a>
impl<'a> RefUnwindSafe for Gauge<'a>
impl<'a> UnwindSafe for Gauge<'a>
impl<'a> UnwindSafe for Gauge<'a>