WebCore::GestureContext Class Reference

GestureContext holds instances of all gesture recognizers. More...

#include <GestureContext.h>

Collaboration diagram for WebCore::GestureContext:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 GestureContext ()
virtual ~GestureContext ()
const GestureRecognizerrecognizer (GestureId id) const
 Get the specified recognizer.
const PanRecognizerpan () const
 Get the pan recognizer.
const PinchRecognizerpinch () const
 Get the pinch recognizer.
const RotateRecognizerrotate () const
 Get the rotate recognizer.
const PointerRecognizerpointer () const
 Get the pointer recognizer.
void touchEvent (const PlatformTouchEvent &)
 Feed a touch event to all gesture recognizers.
void endGestures ()
 Reset all gesture recognizers.

Private Attributes

GestureRecognizerm_recognizers [GestureCount]

Detailed Description

GestureContext holds instances of all gesture recognizers.

Gesture context creates and holds instances of all gesture recognizers and provides an API for reseting them and feeding touch events to all of them.

See also:
PointerRecognizer
RotateRecognizer
PinchRecognizer
PanRecognizer

Definition at line 41 of file GestureContext.h.


Constructor & Destructor Documentation

WebCore::GestureContext::GestureContext (  ) 

Constructs a GestureContext and creates instances for all gesture recognizers.

Definition at line 52 of file GestureContext.cpp.

References m_recognizers, WebCore::PinchGesture, WebCore::PointerGesture, and WebCore::RotateGesture.

WebCore::GestureContext::~GestureContext (  )  [virtual]

Destroys the gesture context and all its gesture recognizers.

Definition at line 63 of file GestureContext.cpp.


Member Function Documentation

void WebCore::GestureContext::endGestures (  ) 

Reset all gesture recognizers.

Definition at line 91 of file GestureContext.cpp.

const PanRecognizer * WebCore::GestureContext::pan (  )  const [inline]

Get the pan recognizer.

Definition at line 52 of file GestureContext.h.

References WebCore::PanGesture, and recognizer().

Here is the call graph for this function:

const PinchRecognizer * WebCore::GestureContext::pinch (  )  const [inline]

Get the pinch recognizer.

Definition at line 60 of file GestureContext.h.

References WebCore::PinchGesture, and recognizer().

Here is the call graph for this function:

const PointerRecognizer * WebCore::GestureContext::pointer (  )  const [inline]

Get the pointer recognizer.

Definition at line 76 of file GestureContext.h.

References WebCore::PointerGesture, and recognizer().

Here is the call graph for this function:

const GestureRecognizer * WebCore::GestureContext::recognizer ( GestureId  id  )  const [inline]

Get the specified recognizer.

Definition at line 47 of file GestureContext.h.

References m_recognizers.

const RotateRecognizer * WebCore::GestureContext::rotate (  )  const [inline]

Get the rotate recognizer.

Definition at line 68 of file GestureContext.h.

References recognizer(), and WebCore::RotateGesture.

Here is the call graph for this function:

void WebCore::GestureContext::touchEvent ( const PlatformTouchEvent &  touchEv  ) 

Feed a touch event to all gesture recognizers.

Parameters:
touchEv platform touch event.

Definition at line 78 of file GestureContext.cpp.

References endGestures(), and m_recognizers.

Here is the call graph for this function:


Member Data Documentation

Definition at line 92 of file GestureContext.h.


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.2-20100208