Struct tui_logger::TuiLoggerWidget
source · pub struct TuiLoggerWidget<'b> { /* private fields */ }
Expand description
The TuiLoggerWidget shows the logging messages in an endless scrolling view. It is controlled by a TuiWidgetState for selected events.
Implementations§
source§impl<'b> TuiLoggerWidget<'b>
impl<'b> TuiLoggerWidget<'b>
pub fn block(&'b mut self, block: Block<'b>) -> &'_ mut TuiLoggerWidget<'b>
pub fn style(&'b mut self, style: Style) -> &'_ mut TuiLoggerWidget<'b>
pub fn style_error(&'b mut self, style: Style) -> &'_ mut TuiLoggerWidget<'b>
pub fn style_warn(&'b mut self, style: Style) -> &'_ mut TuiLoggerWidget<'b>
pub fn style_info(&'b mut self, style: Style) -> &'_ mut TuiLoggerWidget<'b>
pub fn style_trace(&'b mut self, style: Style) -> &'_ mut TuiLoggerWidget<'b>
pub fn style_debug(&'b mut self, style: Style) -> &'_ mut TuiLoggerWidget<'b>
pub fn state(&'b mut self, state: &TuiWidgetState) -> &'_ mut TuiLoggerWidget<'b>
Trait Implementations§
source§impl<'b> Default for TuiLoggerWidget<'b>
impl<'b> Default for TuiLoggerWidget<'b>
source§fn default() -> TuiLoggerWidget<'b>
fn default() -> TuiLoggerWidget<'b>
Returns the “default value” for a type. Read more
source§impl<'b> Widget for TuiLoggerWidget<'b>
impl<'b> Widget for TuiLoggerWidget<'b>
source§fn draw(&mut self, area: Rect, buf: &mut Buffer)
fn draw(&mut self, area: Rect, buf: &mut Buffer)
Draws the current state of the widget in the given buffer. That the only method required to
implement a custom widget. Read more