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