Struct penrose::draw::StatusBar [−][src]
pub struct StatusBar<C, D, X> where
C: DrawContext,
D: Draw<Ctx = C>,
X: XConn, {
pub widgets: Vec<Box<dyn HookableWidget<X>>>,
// some fields omitted
}
Expand description
A simple status bar that works via hooks
Fields
widgets: Vec<Box<dyn HookableWidget<X>>>
The widgets contained within this status bar
Implementations
Try to initialise a new empty status bar. Can fail if we are unable to create our window
Trait Implementations
fn client_name_updated(
&mut self,
wm: &mut WindowManager<X>,
id: Xid,
name: &str,
is_root: bool
) -> Result<()>
fn client_name_updated(
&mut self,
wm: &mut WindowManager<X>,
id: Xid,
name: &str,
is_root: bool
) -> Result<()>
Trigger Point Read more
fn client_added_to_workspace(
&mut self,
wm: &mut WindowManager<X>,
id: Xid,
wix: usize
) -> Result<()>
fn client_added_to_workspace(
&mut self,
wm: &mut WindowManager<X>,
id: Xid,
wix: usize
) -> Result<()>
Trigger Point Read more
Trigger Point Read more
fn layout_applied(
&mut self,
wm: &mut WindowManager<X>,
workspace_index: usize,
screen_index: usize
) -> Result<()>
fn layout_applied(
&mut self,
wm: &mut WindowManager<X>,
workspace_index: usize,
screen_index: usize
) -> Result<()>
Trigger Point Read more
fn layout_change(
&mut self,
wm: &mut WindowManager<X>,
workspace_index: usize,
screen_index: usize
) -> Result<()>
fn layout_change(
&mut self,
wm: &mut WindowManager<X>,
workspace_index: usize,
screen_index: usize
) -> Result<()>
Trigger Point Read more
Trigger Point Read more
Trigger Point Read more
Trigger Point Read more
fn workspace_change(
&mut self,
wm: &mut WindowManager<X>,
prev: usize,
new: usize
) -> Result<()>
fn workspace_change(
&mut self,
wm: &mut WindowManager<X>,
prev: usize,
new: usize
) -> Result<()>
Trigger Point Read more
fn workspaces_updated(
&mut self,
wm: &mut WindowManager<X>,
names: &[&str],
active: usize
) -> Result<()>
fn workspaces_updated(
&mut self,
wm: &mut WindowManager<X>,
names: &[&str],
active: usize
) -> Result<()>
Trigger Point Read more
Trigger Point Read more
Trigger Point Read more
Trigger Point Read more
Auto Trait Implementations
impl<C, D, X> !RefUnwindSafe for StatusBar<C, D, X>
impl<C, D, X> !UnwindSafe for StatusBar<C, D, X>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more