pub struct LineGauge { /* private fields */ }Expand description
§LineGauge
provides a component which shows the progress. It is possible to set the style for the progress bar and the text shown above it.
Implementations§
source§impl LineGauge
 
impl LineGauge
pub fn foreground(self, fg: Color) -> Self
pub fn background(self, bg: Color) -> Self
pub fn borders(self, b: Borders) -> Self
pub fn modifiers(self, m: TextModifiers) -> Self
pub fn title<S: AsRef<str>>(self, t: S, a: Alignment) -> Self
pub fn label<S: AsRef<str>>(self, s: S) -> Self
pub fn progress(self, p: f64) -> Self
pub fn style(self, s: u8) -> Self
Trait Implementations§
source§impl MockComponent for LineGauge
 
impl MockComponent for LineGauge
source§fn view(&mut self, render: &mut Frame<'_>, area: Rect)
 
fn view(&mut self, render: &mut Frame<'_>, area: Rect)
Based on the current properties and states, renders the component in the provided area frame.
Render can also mutate the component state if this is required
source§fn query(&self, attr: Attribute) -> Option<AttrValue>
 
fn query(&self, attr: Attribute) -> Option<AttrValue>
Query attribute of component properties.
Auto Trait Implementations§
impl Freeze for LineGauge
impl RefUnwindSafe for LineGauge
impl Send for LineGauge
impl Sync for LineGauge
impl Unpin for LineGauge
impl UnwindSafe for LineGauge
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more