ComponentBag

Type Alias ComponentBag 

Source
pub type ComponentBag = Box<dyn Component<Props = PropBag>>;

Aliased Type§

pub struct ComponentBag(/* private fields */);

Trait Implementations§

Source§

impl<U: ?Sized> ComponentWrap<U> for ComponentBag
where for<'a> &'a U: From<&'a PropBag>,

Source§

fn layout( &self, manager: &mut StateManager, driver: &Driver, window: &Arc<SourceID>, ) -> Box<dyn Layout<U> + 'static>

Source§

impl FromLua for ComponentBag

Source§

fn from_lua(value: Value, _: &Lua) -> Result<Self>

Performs the conversion.
Source§

impl StateMachineChild for ComponentBag

Source§

fn id(&self) -> Arc<SourceID>

Source§

fn init( &self, driver: &Weak<Driver>, ) -> Result<Box<dyn StateMachineWrapper>, Error>

Source§

fn apply_children( &self, f: &mut dyn FnMut(&dyn StateMachineChild) -> Result<()>, ) -> Result<()>

Source§

impl UserData for ComponentBag

Source§

fn add_fields<F>(fields: &mut F)
where F: UserDataFields<Self>,

Adds custom fields specific to this userdata.
Source§

fn add_methods<M>(methods: &mut M)
where M: UserDataMethods<Self>,

Adds custom methods and operators specific to this userdata.
Source§

fn register(registry: &mut UserDataRegistry<Self>)

Registers this type for use in Lua. Read more