[−][src]Trait orbtk_api::event::EventHandler
This trait is used to define an event handler.
Required methods
fn handle_event(
&self,
state_context: &mut StatesContext<'_>,
event: &EventBox
) -> bool
&self,
state_context: &mut StatesContext<'_>,
event: &EventBox
) -> bool
Handles an event
by the given widget
. If it returns true
the event will not be forwarded.
fn handles_event(&self, event: &EventBox) -> bool
Check if the handler could handle the given event box.
Implementors
impl EventHandler for ActivateEventHandler
[src]
fn handle_event(&self, states: &mut StatesContext<'_>, event: &EventBox) -> bool
[src]
fn handles_event(&self, event: &EventBox) -> bool
[src]
impl EventHandler for ChangedEventHandler
[src]
fn handle_event(&self, states: &mut StatesContext<'_>, event: &EventBox) -> bool
[src]
fn handles_event(&self, event: &EventBox) -> bool
[src]
impl EventHandler for ClickEventHandler
[src]
fn handle_event(
&self,
state_context: &mut StatesContext<'_>,
event: &EventBox
) -> bool
[src]
&self,
state_context: &mut StatesContext<'_>,
event: &EventBox
) -> bool
fn handles_event(&self, event: &EventBox) -> bool
[src]
impl EventHandler for FocusEventHandler
[src]
fn handle_event(&self, states: &mut StatesContext<'_>, event: &EventBox) -> bool
[src]
fn handles_event(&self, event: &EventBox) -> bool
[src]
impl EventHandler for GlobalMouseUpEventHandler
[src]
fn handle_event(
&self,
state_context: &mut StatesContext<'_>,
event: &EventBox
) -> bool
[src]
&self,
state_context: &mut StatesContext<'_>,
event: &EventBox
) -> bool
fn handles_event(&self, event: &EventBox) -> bool
[src]
impl EventHandler for KeyDownEventHandler
[src]
fn handle_event(
&self,
state_context: &mut StatesContext<'_>,
event: &EventBox
) -> bool
[src]
&self,
state_context: &mut StatesContext<'_>,
event: &EventBox
) -> bool
fn handles_event(&self, event: &EventBox) -> bool
[src]
impl EventHandler for MouseDownEventHandler
[src]
fn handle_event(
&self,
state_context: &mut StatesContext<'_>,
event: &EventBox
) -> bool
[src]
&self,
state_context: &mut StatesContext<'_>,
event: &EventBox
) -> bool
fn handles_event(&self, event: &EventBox) -> bool
[src]
impl EventHandler for MouseMoveEventHandler
[src]
fn handle_event(
&self,
state_context: &mut StatesContext<'_>,
event: &EventBox
) -> bool
[src]
&self,
state_context: &mut StatesContext<'_>,
event: &EventBox
) -> bool
fn handles_event(&self, event: &EventBox) -> bool
[src]
impl EventHandler for MouseUpEventHandler
[src]
fn handle_event(
&self,
state_context: &mut StatesContext<'_>,
event: &EventBox
) -> bool
[src]
&self,
state_context: &mut StatesContext<'_>,
event: &EventBox
) -> bool
fn handles_event(&self, event: &EventBox) -> bool
[src]
impl EventHandler for ScrollEventHandler
[src]
fn handle_event(
&self,
state_context: &mut StatesContext<'_>,
event: &EventBox
) -> bool
[src]
&self,
state_context: &mut StatesContext<'_>,
event: &EventBox
) -> bool