Struct tui_logger::TuiLoggerTargetWidget
[−]
[src]
pub struct TuiLoggerTargetWidget<'b> { /* fields omitted */ }
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.
Methods
impl<'b> TuiLoggerTargetWidget<'b>
[src]
pub fn block(&'b mut self, block: Block<'b>) -> &mut TuiLoggerTargetWidget<'b>
[src]
pub fn style(&'b mut self, style: Style) -> &mut TuiLoggerTargetWidget<'b>
[src]
pub fn style_off(&'b mut self, style: Style) -> &mut TuiLoggerTargetWidget<'b>
[src]
pub fn style_hide(&'b mut self, style: Style) -> &mut TuiLoggerTargetWidget<'b>
[src]
pub fn style_show(&'b mut self, style: Style) -> &mut TuiLoggerTargetWidget<'b>
[src]
pub fn highlight_style(
&'b mut self,
style: Style
) -> &mut TuiLoggerTargetWidget<'b>
[src]
&'b mut self,
style: Style
) -> &mut TuiLoggerTargetWidget<'b>
pub fn state(
&'b mut self,
state: &TuiWidgetState
) -> &mut TuiLoggerTargetWidget<'b>
[src]
&'b mut self,
state: &TuiWidgetState
) -> &mut TuiLoggerTargetWidget<'b>
Trait Implementations
impl<'b> Default for TuiLoggerTargetWidget<'b>
[src]
fn default() -> TuiLoggerTargetWidget<'b>
[src]
Returns the "default value" for a type. Read more
impl<'b> Widget for TuiLoggerTargetWidget<'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.
impl<'b> EventListener<Event> for TuiLoggerTargetWidget<'b>
[src]
fn dispatcher(
&mut self,
dispatcher: Rc<RefCell<Dispatcher<Event>>>
) -> &mut TuiLoggerTargetWidget<'b>
[src]
&mut self,
dispatcher: Rc<RefCell<Dispatcher<Event>>>
) -> &mut TuiLoggerTargetWidget<'b>
Hand over a Dispatcher to the widget.