pub fn new(
        root: Entity,
        ecm: &'a mut EntityComponentManager<Tree>,
        theme: &'a Theme,
        event_adapter: Option<&'a EventAdapter>,
    ) -> Self {
        WidgetContainer {
            ecm,
            current_node: root,
            theme,
            event_adapter,
        }
    }
/// Creates a new widget container for the given `entity`.
Creates a new widget container for the given `entity`.
Creates a new widget container for the given ` entity ` .
pub fn new(
        root: Entity,
        ecm: &'a mut EntityComponentManager<Tree>,
        theme: &'a Theme,
        event_adapter: Option<&'a EventAdapter>,
    ) -> Self {
        WidgetContainer {
            ecm,
            current_node: root,
            theme,
            event_adapter,
        }
    }
pub fn new ( root : Entity , ecm : & ' a mut EntityComponentManager < Tree > , theme : & ' a Theme , event_adapter : Option < & ' a EventAdapter > , ) -> Self { WidgetContainer { ecm , current_node : root , theme , event_adapter , } }
Creates a new widget container for the given `entity`.
Creates a new widget container for the given ` entity ` .
root
Entity
ecm
&'a mut EntityComponentManager<Tree>
theme
&'a Theme
event_adapter
Option<&'a EventAdapter>