Struct tui_logger::TuiLoggerWidget
[−]
[src]
pub struct TuiLoggerWidget<'b> { /* fields omitted */ }
The TuiLoggerWidget shows the logging messages in an endless scrolling view. It is controlled by a TuiWidgetState for selected events.
Methods
impl<'b> TuiLoggerWidget<'b>
[src]
pub fn block(&'b mut self, block: Block<'b>) -> &mut TuiLoggerWidget<'b>
[src]
pub fn style(&'b mut self, style: Style) -> &mut TuiLoggerWidget<'b>
[src]
pub fn style_error(&'b mut self, style: Style) -> &mut TuiLoggerWidget<'b>
[src]
pub fn style_warn(&'b mut self, style: Style) -> &mut TuiLoggerWidget<'b>
[src]
pub fn style_info(&'b mut self, style: Style) -> &mut TuiLoggerWidget<'b>
[src]
pub fn style_trace(&'b mut self, style: Style) -> &mut TuiLoggerWidget<'b>
[src]
pub fn style_debug(&'b mut self, style: Style) -> &mut TuiLoggerWidget<'b>
[src]
pub fn state(&'b mut self, state: &TuiWidgetState) -> &mut TuiLoggerWidget<'b>
[src]
Trait Implementations
impl<'b> Default for TuiLoggerWidget<'b>
[src]
fn default() -> TuiLoggerWidget<'b>
[src]
Returns the "default value" for a type. Read more
impl<'b> Widget for TuiLoggerWidget<'b>
[src]
fn draw(&mut self, area: &Rect, buf: &mut Buffer)
[src]
Draws the current state of the widget in the given buffer. That the only method required to implement a custom widget. Read more
fn background(&self, area: &Rect, buf: &mut Buffer, color: Color)
[src]
Helper method to quickly set the background of all cells inside the specified area.
fn render<B>(&mut self, t: &mut Terminal<B>, area: &Rect) where
B: Backend,
[src]
B: Backend,
Helper method that can be chained with a widget's builder methods to render it.