[][src]Struct penrose::draw::bar::StatusBar

pub struct StatusBar<C, D, X> where
    C: DrawContext,
    D: Draw<Ctx = C>,
    X: XConn
{ /* fields omitted */ }

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]

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]

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]

impl<C, D, X> Hook<X> for StatusBar<C, D, X> where
    C: DrawContext,
    D: Draw<Ctx = C>,
    X: XConn
[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]

impl<C, D, X> !UnwindSafe for StatusBar<C, D, X>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.