Struct tui_logger::TuiLoggerSmartWidget
[−]
[src]
pub struct TuiLoggerSmartWidget<'b> { /* fields omitted */ }
The Smart Widget combines the TuiLoggerWidget and the TuiLoggerTargetWidget into a nice combo, where the TuiLoggerTargetWidget can be shown/hidden.
In the title the number of logging messages/s in the whole buffer is shown.
Methods
impl<'b> TuiLoggerSmartWidget<'b>
[src]
pub fn block(&'b mut self, block: Block<'b>) -> &mut TuiLoggerSmartWidget<'b>
[src]
pub fn highlight_style(
&'b mut self,
style: Style
) -> &mut TuiLoggerSmartWidget<'b>
[src]
&'b mut self,
style: Style
) -> &mut TuiLoggerSmartWidget<'b>
pub fn border_style(&'b mut self, style: Style) -> &mut TuiLoggerSmartWidget<'b>
[src]
pub fn style(&'b mut self, style: Style) -> &mut TuiLoggerSmartWidget<'b>
[src]
pub fn style_error(&'b mut self, style: Style) -> &mut TuiLoggerSmartWidget<'b>
[src]
pub fn style_warn(&'b mut self, style: Style) -> &mut TuiLoggerSmartWidget<'b>
[src]
pub fn style_info(&'b mut self, style: Style) -> &mut TuiLoggerSmartWidget<'b>
[src]
pub fn style_trace(&'b mut self, style: Style) -> &mut TuiLoggerSmartWidget<'b>
[src]
pub fn style_debug(&'b mut self, style: Style) -> &mut TuiLoggerSmartWidget<'b>
[src]
pub fn style_off(&'b mut self, style: Style) -> &mut TuiLoggerSmartWidget<'b>
[src]
pub fn style_hide(&'b mut self, style: Style) -> &mut TuiLoggerSmartWidget<'b>
[src]
pub fn style_show(&'b mut self, style: Style) -> &mut TuiLoggerSmartWidget<'b>
[src]
pub fn state(
&'b mut self,
state: &TuiWidgetState
) -> &mut TuiLoggerSmartWidget<'b>
[src]
&'b mut self,
state: &TuiWidgetState
) -> &mut TuiLoggerSmartWidget<'b>
Trait Implementations
impl<'b> Default for TuiLoggerSmartWidget<'b>
[src]
fn default() -> TuiLoggerSmartWidget<'b>
[src]
Returns the "default value" for a type. Read more
impl<'b> EventListener<Event> for TuiLoggerSmartWidget<'b>
[src]
fn dispatcher(
&mut self,
dispatcher: Rc<RefCell<Dispatcher<Event>>>
) -> &mut TuiLoggerSmartWidget<'b>
[src]
&mut self,
dispatcher: Rc<RefCell<Dispatcher<Event>>>
) -> &mut TuiLoggerSmartWidget<'b>
Hand over a Dispatcher to the widget.
impl<'b> Widget for TuiLoggerSmartWidget<'b>
[src]
fn draw(&mut self, _area: &Rect, _buf: &mut Buffer)
[src]
Nothing to draw for combo widget
fn render<B>(&mut self, t: &mut Terminal<B>, area: &Rect) where
Self: Sized,
B: Backend,
[src]
Self: Sized,
B: Backend,
Helper method that can be chained with a widget's builder methods to render it.
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.