pub struct FooterWidget<'a> { /* private fields */ }Expand description
Widget for rendering the footer area with status and hints
The footer provides a stable region for:
- Left status (git branch, model info)
- Right status (token count, context usage)
- Help hints (shown conditionally)
§Example
ⓘ
FooterWidget::new(&styles)
.left_status("main ✓")
.right_status("claude-4 | 12K tokens")
.hint("? for help")
.mode(LayoutMode::Standard)
.render(footer_area, buf);Implementations§
Sourcepub fn new(styles: &'a SessionStyles) -> Self
pub fn new(styles: &'a SessionStyles) -> Self
Create a new footer widget
Sourcepub fn left_status(self, status: &'a str) -> Self
pub fn left_status(self, status: &'a str) -> Self
Set the left status text (e.g., git branch)
Sourcepub fn right_status(self, status: &'a str) -> Self
pub fn right_status(self, status: &'a str) -> Self
Set the right status text (e.g., model info)
Sourcepub fn mode(self, mode: LayoutMode) -> Self
pub fn mode(self, mode: LayoutMode) -> Self
Set the layout mode
Sourcepub fn show_border(self, show: bool) -> Self
pub fn show_border(self, show: bool) -> Self
Show a top border
Sourcepub fn shimmer_phase(self, phase: f32) -> Self
pub fn shimmer_phase(self, phase: f32) -> Self
Set shimmer phase for animated status text
Trait Implementations§
Auto Trait Implementations§
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