Trait tuix_internal::Model[][src]

pub trait Model {
    fn on_event(&mut self, state: &mut State, entity: Entity, event: &mut Event) { ... }
fn build(self, state: &mut State, parent: Entity) -> Entity
    where
        Self: Model + Node
, { ... } }

Provided methods

Adds the widget into state and returns the associated type Ret - an entity id or a tuple of entity ids

Implementors