Skip to main content

Decorated

Trait Decorated 

pub trait Decorated: Widget {
    // Required method
    fn decorated(&self) -> &dyn Widget;
}
Expand description

The widget a Decorator stands for, as an inventory that walks widgets by their children reaches it: a decorator’s inner widget is no child of its own, so controls::control_action_bindings asks for it here. A decorator that keeps its inner widget out of the tree — a sheet that is not shown — answers nothing.

Required Methods§

fn decorated(&self) -> &dyn Widget

The widget this one stands for.

Implementors§

§

impl Decorated for NavList

§

impl Decorated for MediaTransport

§

impl Decorated for PageSlide

§

impl Decorated for QueryView

§

impl Decorated for TabStrip

§

impl<T> Decorated for T
where T: Decorator,

The widget a decorator stands for: what an inventory walking widgets by their children asks it for its own bindings.