pub struct StatusBar { /* private fields */ }Expand description
Status bar widget implementation
Implementations§
Source§impl StatusBar
impl StatusBar
Sourcepub fn with_config(config: StatusBarConfig) -> Self
pub fn with_config(config: StatusBarConfig) -> Self
Create with custom configuration
Sourcepub fn with_renderer<F>(self, renderer: F) -> Self
pub fn with_renderer<F>(self, renderer: F) -> Self
Set a custom renderer function
Sourcepub fn update_data(&mut self, data: StatusBarData)
pub fn update_data(&mut self, data: StatusBarData)
Update the status bar data before rendering
This should be called by App before layout computation.
Trait Implementations§
Source§impl Widget for StatusBar
impl Widget for StatusBar
Source§fn handle_key(
&mut self,
_key: KeyEvent,
_ctx: &WidgetKeyContext<'_>,
) -> WidgetKeyResult
fn handle_key( &mut self, _key: KeyEvent, _ctx: &WidgetKeyContext<'_>, ) -> WidgetKeyResult
Handle key event, return result indicating what action to take. Read more
Source§fn required_height(&self, _available: u16) -> u16
fn required_height(&self, _available: u16) -> u16
Calculate required height for this widget Read more
Source§fn blocks_input(&self) -> bool
fn blocks_input(&self) -> bool
Whether this widget blocks input to the text input when active
Source§fn is_overlay(&self) -> bool
fn is_overlay(&self) -> bool
Whether this widget is a full-screen overlay Read more
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Cast to Any for mutable downcasting
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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