pub trait Component: StateMachineChild + DynClone {
type Props: 'static;
// Required method
fn layout(
&self,
state: &mut StateManager,
driver: &Driver,
window: &Arc<SourceID>,
) -> Box<dyn Layout<Self::Props> + 'static>;
}
Required Associated Types§
Required Methods§
fn layout( &self, state: &mut StateManager, driver: &Driver, window: &Arc<SourceID>, ) -> Box<dyn Layout<Self::Props> + 'static>
Trait Implementations§
Source§impl StateMachineChild for Box<dyn Component<Props = PropBag>>
impl StateMachineChild for Box<dyn Component<Props = PropBag>>
Source§impl UserData for Box<dyn Component<Props = PropBag>>
impl UserData for Box<dyn Component<Props = PropBag>>
Source§fn add_fields<F>(fields: &mut F)where
F: UserDataFields<Self>,
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>,
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>)
fn register(registry: &mut UserDataRegistry<Self>)
Registers this type for use in Lua. Read more