[][src]Trait i3monkit::Widget

pub trait Widget {
    fn update(&mut self) -> Option<WidgetUpdate>;
}

The trait for an widget.

A widget maintains a dynamic block on the i3bar

Required methods

fn update(&mut self) -> Option<WidgetUpdate>

The function used to update the widget.

Note: even with no update, the widget should return an non-empty update with empty data payload. If None is returned, the framework will disable this widget and do not call the update function anymore.

Loading content...

Implementors

impl Widget for BatteryWidget
[src]

impl Widget for CpuWidget
[src]

impl Widget for DateTimeWidget
[src]

impl Widget for NetworkSpeedWidget
[src]

impl Widget for VolumeWidget
[src]

impl<'a> Widget for StockWidget<'a>
[src]

Loading content...