pub struct StatusBar { /* private fields */ }Expand description
A three-section status bar (left, center, right).
Implementations§
Source§impl StatusBar
impl StatusBar
Sourcepub const fn with_config(bounds: Rect, config: StatusBarConfig) -> Self
pub const fn with_config(bounds: Rect, config: StatusBarConfig) -> Self
Create a new status bar with custom configuration.
Sourcepub fn set_center(&mut self, text: impl Into<String>)
pub fn set_center(&mut self, text: impl Into<String>)
Set the center section content.
Trait Implementations§
Source§impl Widget for StatusBar
impl Widget for StatusBar
Source§fn set_bounds(&mut self, bounds: Rect)
fn set_bounds(&mut self, bounds: Rect)
Set the bounds of this widget. Read more
Source§fn handle_input(&mut self, _event: &InputEvent) -> bool
fn handle_input(&mut self, _event: &InputEvent) -> bool
Handle an input event. Read more
Source§fn needs_redraw(&self) -> bool
fn needs_redraw(&self) -> bool
Check if this widget needs to be redrawn.
Source§fn clear_redraw(&mut self)
fn clear_redraw(&mut self)
Clear the redraw flag after rendering.
Auto Trait Implementations§
impl Freeze for StatusBar
impl RefUnwindSafe for StatusBar
impl Send for StatusBar
impl Sync for StatusBar
impl Unpin for StatusBar
impl UnwindSafe for StatusBar
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