[−][src]Struct penrose::draw::bar::StatusBar
A simple status bar that works via hooks
Implementations
impl<C, D, X> StatusBar<C, D, X> where
C: DrawContext,
D: Draw<Ctx = C>,
X: XConn,
[src]
C: DrawContext,
D: Draw<Ctx = C>,
X: XConn,
pub fn try_new(
drw: D,
position: Position,
h: usize,
bg: impl Into<Color>,
fonts: &[&str],
widgets: Vec<Box<dyn HookableWidget<X>>>
) -> Result<Self>
[src]
drw: D,
position: Position,
h: usize,
bg: impl Into<Color>,
fonts: &[&str],
widgets: Vec<Box<dyn HookableWidget<X>>>
) -> Result<Self>
Try to initialise a new empty status bar. Can fail if we are unable to create our window
pub fn redraw(&mut self) -> Result<()>
[src]
Re-render all widgets in this status bar
Trait Implementations
impl<C, D, X> Debug for StatusBar<C, D, X> where
C: DrawContext,
D: Draw<Ctx = C>,
X: XConn,
[src]
C: DrawContext,
D: Draw<Ctx = C>,
X: XConn,
impl<C, D, X> Hook<X> for StatusBar<C, D, X> where
C: DrawContext,
D: Draw<Ctx = C>,
X: XConn,
[src]
C: DrawContext,
D: Draw<Ctx = C>,
X: XConn,
pub fn client_name_updated(
&mut self,
wm: &mut WindowManager<X>,
id: WinId,
name: &str,
is_root: bool
) -> Result<()>
[src]
&mut self,
wm: &mut WindowManager<X>,
id: WinId,
name: &str,
is_root: bool
) -> Result<()>
pub fn client_added_to_workspace(
&mut self,
wm: &mut WindowManager<X>,
id: WinId,
wix: usize
) -> Result<()>
[src]
&mut self,
wm: &mut WindowManager<X>,
id: WinId,
wix: usize
) -> Result<()>
pub fn focus_change(
&mut self,
wm: &mut WindowManager<X>,
id: WinId
) -> Result<()>
[src]
&mut self,
wm: &mut WindowManager<X>,
id: WinId
) -> Result<()>
pub fn layout_applied(
&mut self,
wm: &mut WindowManager<X>,
workspace_index: usize,
screen_index: usize
) -> Result<()>
[src]
&mut self,
wm: &mut WindowManager<X>,
workspace_index: usize,
screen_index: usize
) -> Result<()>
pub fn layout_change(
&mut self,
wm: &mut WindowManager<X>,
workspace_index: usize,
screen_index: usize
) -> Result<()>
[src]
&mut self,
wm: &mut WindowManager<X>,
workspace_index: usize,
screen_index: usize
) -> Result<()>
pub fn new_client(
&mut self,
wm: &mut WindowManager<X>,
id: &mut Client
) -> Result<()>
[src]
&mut self,
wm: &mut WindowManager<X>,
id: &mut Client
) -> Result<()>
pub fn randr_notify(&mut self, wm: &mut WindowManager<X>) -> Result<()>
[src]
pub fn remove_client(
&mut self,
wm: &mut WindowManager<X>,
id: WinId
) -> Result<()>
[src]
&mut self,
wm: &mut WindowManager<X>,
id: WinId
) -> Result<()>
pub fn workspace_change(
&mut self,
wm: &mut WindowManager<X>,
prev: usize,
new: usize
) -> Result<()>
[src]
&mut self,
wm: &mut WindowManager<X>,
prev: usize,
new: usize
) -> Result<()>
pub fn workspaces_updated(
&mut self,
wm: &mut WindowManager<X>,
names: &[&str],
active: usize
) -> Result<()>
[src]
&mut self,
wm: &mut WindowManager<X>,
names: &[&str],
active: usize
) -> Result<()>
pub fn screen_change(
&mut self,
wm: &mut WindowManager<X>,
ix: usize
) -> Result<()>
[src]
&mut self,
wm: &mut WindowManager<X>,
ix: usize
) -> Result<()>
pub fn screens_updated(
&mut self,
wm: &mut WindowManager<X>,
dimensions: &[Region]
) -> Result<()>
[src]
&mut self,
wm: &mut WindowManager<X>,
dimensions: &[Region]
) -> Result<()>
pub fn event_handled(&mut self, wm: &mut WindowManager<X>) -> Result<()>
[src]
pub fn startup(&mut self, wm: &mut WindowManager<X>) -> Result<()>
[src]
Auto Trait Implementations
impl<C, D, X> !RefUnwindSafe for StatusBar<C, D, X>
[src]
impl<C, D, X> !Send for StatusBar<C, D, X>
[src]
impl<C, D, X> !Sync for StatusBar<C, D, X>
[src]
impl<C, D, X> Unpin for StatusBar<C, D, X> where
D: Unpin,
[src]
D: Unpin,
impl<C, D, X> !UnwindSafe for StatusBar<C, D, X>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,