uicore::ViewAction Class Reference

Recognizes actions in a view and captures input for the duration of the action. More...

#include <view_action.h>

+ Inheritance diagram for uicore::ViewAction:

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...
 
Viewview () const
 Returns the view the action is attached to. More...
 
template<typename T >
T * view () const
 
- Public Member Functions inherited from uicore::ViewEventHandler
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
 

Detailed Description

Recognizes actions in a view and captures input for the duration of the action.

Constructor & Destructor Documentation

uicore::ViewAction::ViewAction ( )
virtual uicore::ViewAction::~ViewAction ( )
virtual

Member Function Documentation

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.

template<typename T >
T* uicore::ViewAction::view ( ) const
inline

Friends And Related Function Documentation

friend class View
friend
friend class ViewActionImpl
friend
friend class ViewTree
friend

The documentation for this class was generated from the following file: