Trait regecs::object::Object[][src]

pub trait Object<TState, TComponentManager> {
    type EventType: Any;
    fn event(
        &mut self,
        event: &Self::EventType,
        context: EventContext<'_, TState, TComponentManager>
    ) -> Option<EventResult>;
fn init(&mut self, ptr: ObjectRef, components: &mut TComponentManager);
fn remove(&mut self, ptr: ObjectRef, components: &mut TComponentManager); }
Expand description

High-level object interface

Associated Types

Required methods

fn event(
    &mut self,
    event: &Self::EventType,
    context: EventContext<'_, TState, TComponentManager>
) -> Option<EventResult>
[src]

fn init(&mut self, ptr: ObjectRef, components: &mut TComponentManager)[src]

fn remove(&mut self, ptr: ObjectRef, components: &mut TComponentManager)[src]

Implementors