Struct tui_logger::TuiLoggerTargetWidget
source · pub struct TuiLoggerTargetWidget<'b> { /* private fields */ }
Expand description
This is the definition for the TuiLoggerTargetWidget, which allows configuration of the logger system and selection of log messages. It implements the EventListener trait, because it can enter event handlers to the dispatcher for the key commands.
Implementations§
source§impl<'b> TuiLoggerTargetWidget<'b>
impl<'b> TuiLoggerTargetWidget<'b>
pub fn block(&'b mut self, block: Block<'b>) -> &'_ mut TuiLoggerTargetWidget<'b>
pub fn style(&'b mut self, style: Style) -> &'_ mut TuiLoggerTargetWidget<'b>
pub fn style_off(&'b mut self, style: Style) -> &'_ mut TuiLoggerTargetWidget<'b>
pub fn style_hide(
&'b mut self,
style: Style
) -> &'_ mut TuiLoggerTargetWidget<'b>
pub fn style_show(
&'b mut self,
style: Style
) -> &'_ mut TuiLoggerTargetWidget<'b>
pub fn highlight_style(
&'b mut self,
style: Style
) -> &'_ mut TuiLoggerTargetWidget<'b>
pub fn state(
&'b mut self,
state: &TuiWidgetState
) -> &'_ mut TuiLoggerTargetWidget<'b>
Trait Implementations§
source§impl<'b> Default for TuiLoggerTargetWidget<'b>
impl<'b> Default for TuiLoggerTargetWidget<'b>
source§fn default() -> TuiLoggerTargetWidget<'b>
fn default() -> TuiLoggerTargetWidget<'b>
Returns the “default value” for a type. Read more
source§impl<'b> EventListener<Event> for TuiLoggerTargetWidget<'b>
impl<'b> EventListener<Event> for TuiLoggerTargetWidget<'b>
source§fn dispatcher(
&mut self,
dispatcher: Rc<RefCell<Dispatcher<Event>>>
) -> &mut TuiLoggerTargetWidget<'b>
fn dispatcher(
&mut self,
dispatcher: Rc<RefCell<Dispatcher<Event>>>
) -> &mut TuiLoggerTargetWidget<'b>
Hand over a Dispatcher to the widget.
source§impl<'b> Widget for TuiLoggerTargetWidget<'b>
impl<'b> Widget for TuiLoggerTargetWidget<'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