[][src]Trait i3monkit::Decoratable

pub trait Decoratable: Widget + Sized {
    fn decorate_with<F: FnMut(&mut Block)>(
        self,
        proc: F
    ) -> WidgetDecorator<Self, F> { ... } }

The trait for a decoratable object

Provided methods

fn decorate_with<F: FnMut(&mut Block)>(
    self,
    proc: F
) -> WidgetDecorator<Self, F>

Decorate the widget's block with a user-specified function

proc The function we are going to use for block decoration

Loading content...

Implementors

impl<T: Widget + Sized> Decoratable for T
[src]

fn decorate_with<F: FnMut(&mut Block)>(
    self,
    proc: F
) -> WidgetDecorator<Self, F>
[src]

Loading content...