GestureContext holds instances of all gesture recognizers. More...
#include <GestureContext.h>

Public Member Functions | |
| GestureContext () | |
| virtual | ~GestureContext () |
| const GestureRecognizer * | recognizer (GestureId id) const |
| Get the specified recognizer. | |
| const PanRecognizer * | pan () const |
| Get the pan recognizer. | |
| const PinchRecognizer * | pinch () const |
| Get the pinch recognizer. | |
| const RotateRecognizer * | rotate () const |
| Get the rotate recognizer. | |
| const PointerRecognizer * | pointer () 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 | |
| GestureRecognizer * | m_recognizers [GestureCount] |
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.
Definition at line 41 of file GestureContext.h.
| 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.
| 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().

| const PinchRecognizer * WebCore::GestureContext::pinch | ( | ) | const [inline] |
Get the pinch recognizer.
Definition at line 60 of file GestureContext.h.
References WebCore::PinchGesture, and recognizer().

| const PointerRecognizer * WebCore::GestureContext::pointer | ( | ) | const [inline] |
Get the pointer recognizer.
Definition at line 76 of file GestureContext.h.
References WebCore::PointerGesture, and recognizer().

| 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.

| void WebCore::GestureContext::touchEvent | ( | const PlatformTouchEvent & | touchEv | ) |
Feed a touch event to all gesture recognizers.
| touchEv | platform touch event. |
Definition at line 78 of file GestureContext.cpp.
References endGestures(), and m_recognizers.

GestureRecognizer* WebCore::GestureContext::m_recognizers[GestureCount] [private] |
Definition at line 92 of file GestureContext.h.
1.6.2-20100208