Trait tuix_internal::events::event_handler::EventHandler [−][src]
pub trait EventHandler: Any {
fn widget_name(&self) -> String { ... }
fn on_update(
&mut self,
state: &mut State,
entity: Entity,
node: &(dyn Node + 'static)
) { ... }
fn on_event_(
&mut self,
state: &mut State,
entity: Entity,
event: &mut Event
) { ... }
fn on_style(
&mut self,
state: &mut State,
entity: Entity,
property: (String, PropType)
) { ... }
fn on_draw_(
&mut self,
state: &mut State,
entity: Entity,
canvas: &mut Canvas<OpenGl>
) { ... }
}