Trait HookableWidget

Source
pub trait HookableWidget<X>: Hook<X> + Widget
where X: XConn,
{ }
Expand description

A status bar Widget that can be automatically rendered using a DrawContext when triggered via WindowManager Hook calls.

HookableWidgets should not be manually registered as hooks: they will be automatically registered by the StatusBar containing them on startup.

Implementors§

Source§

impl<X, T> HookableWidget<X> for T
where X: XConn, T: Hook<X> + Widget,