Recognizes actions in a view and captures input for the duration of the action. More...
#include <view_action.h>
Inheritance diagram for clan::ViewAction:Public Member Functions | |
| ViewAction () | |
| virtual | ~ViewAction () |
| bool | action_active () const |
| Returns true if the action is capturing events. | |
| virtual void | activated (ActivationChangeEvent &e) |
| Handler for when the application is activated. | |
| virtual void | any_event (EventUI *e) |
| Handler for any UI event. | |
| void | begin_action () |
| Captures events until end is called. | |
| virtual void | deactivated (ActivationChangeEvent &e) |
| Handler for when the application is deactivated. | |
| void | end_action () |
| Releases capture of events. | |
| virtual void | focus_gained (FocusChangeEvent &e) |
| Handler for focus gained events. | |
| virtual void | focus_lost (FocusChangeEvent &e) |
| Handler for focus lost events. | |
| virtual void | key_press (KeyEvent &e) |
| Handler for key press events. | |
| virtual void | key_release (KeyEvent &e) |
| Handler for key release events. | |
| virtual void | pointer_double_click (PointerEvent &e) |
| Handler for pointer double click events. | |
| virtual void | pointer_enter (PointerEvent &e) |
| Handler for pointer enter events. | |
| virtual void | pointer_leave (PointerEvent &e) |
| Handler for pointer leave events. | |
| virtual void | pointer_move (PointerEvent &e) |
| Handler for pointer movement events. | |
| virtual void | pointer_press (PointerEvent &e) |
| Handler for pointer press events. | |
| virtual void | pointer_proximity_change (PointerEvent &e) |
| Handler for pointer proximity change events. | |
| virtual void | pointer_release (PointerEvent &e) |
| Handler for pointer release events. | |
| void | remove_from_view () |
| Removes recognizer from the view it is attached to. | |
| View * | view () const |
| Returns the view the action is attached to. | |
| template<typename T > | |
| T * | view () const |
Friends | |
| class | View |
| class | ViewActionImpl |
| class | ViewTree |
Recognizes actions in a view and captures input for the duration of the action.
| clan::ViewAction::ViewAction | ( | ) |
|
virtual |
| bool clan::ViewAction::action_active | ( | ) | const |
Returns true if the action is capturing events.
|
inlinevirtual |
Handler for when the application is activated.
|
inlinevirtual |
Handler for any UI event.
| void clan::ViewAction::begin_action | ( | ) |
Captures events until end is called.
|
inlinevirtual |
Handler for when the application is deactivated.
| void clan::ViewAction::end_action | ( | ) |
Releases capture of events.
|
inlinevirtual |
Handler for focus gained events.
|
inlinevirtual |
Handler for focus lost events.
|
inlinevirtual |
Handler for key press events.
|
inlinevirtual |
Handler for key release events.
|
inlinevirtual |
Handler for pointer double click events.
|
inlinevirtual |
Handler for pointer enter events.
|
inlinevirtual |
Handler for pointer leave events.
|
inlinevirtual |
Handler for pointer movement events.
|
inlinevirtual |
Handler for pointer press events.
|
inlinevirtual |
Handler for pointer proximity change events.
|
inlinevirtual |
Handler for pointer release events.
| void clan::ViewAction::remove_from_view | ( | ) |
Removes recognizer from the view it is attached to.
| View * clan::ViewAction::view | ( | ) | const |
Returns the view the action is attached to.
Referenced by view().
|
inline |
References view().
|
friend |
|
friend |
|
friend |