pub struct Grid<'a, 'ctx> { /* private fields */ }Expand description
A grid container for grouping elements.
Implementations§
Source§impl<'a, 'ctx> Grid<'a, 'ctx>
impl<'a, 'ctx> Grid<'a, 'ctx>
Sourcepub fn stat(
&mut self,
label: &str,
value: &str,
subvalue: Option<&str>,
accent: AccentColor,
)
pub fn stat( &mut self, label: &str, value: &str, subvalue: Option<&str>, accent: AccentColor, )
Add a stat card to the grid.
Sourcepub fn mini_chart(
&mut self,
label: &str,
values: &[f32],
unit: Option<&str>,
accent: AccentColor,
)
pub fn mini_chart( &mut self, label: &str, values: &[f32], unit: Option<&str>, accent: AccentColor, )
Add a mini chart to the grid.
Sourcepub fn progress_bar(&mut self, label: &str, value: f64, accent: AccentColor)
pub fn progress_bar(&mut self, label: &str, value: f64, accent: AccentColor)
Add a progress bar to the grid.
Sourcepub fn status(
&mut self,
label: &str,
active: bool,
active_text: Option<&str>,
inactive_text: Option<&str>,
active_color: AccentColor,
inactive_color: AccentColor,
)
pub fn status( &mut self, label: &str, active: bool, active_text: Option<&str>, inactive_text: Option<&str>, active_color: AccentColor, inactive_color: AccentColor, )
Add a status indicator to the grid.
Auto Trait Implementations§
impl<'a, 'ctx> Freeze for Grid<'a, 'ctx>
impl<'a, 'ctx> !RefUnwindSafe for Grid<'a, 'ctx>
impl<'a, 'ctx> Send for Grid<'a, 'ctx>
impl<'a, 'ctx> Sync for Grid<'a, 'ctx>
impl<'a, 'ctx> Unpin for Grid<'a, 'ctx>
impl<'a, 'ctx> UnsafeUnpin for Grid<'a, 'ctx>
impl<'a, 'ctx> !UnwindSafe for Grid<'a, 'ctx>
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