WebCore::PinchRecognizer Class Reference

Pinch gesture recognizer. More...

#include <PinchRecognizer.h>

Inheritance diagram for WebCore::PinchRecognizer:
Inheritance graph
[legend]
Collaboration diagram for WebCore::PinchRecognizer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

float scale () const
 Get the current scale.
float scaleSpeed () const
 Gets current scale speed.
float distance () const
 Get the current pinch distance.
virtual void reset ()
 Reset the gesture data.
virtual void touchEvent (const PlatformTouchEvent &)
 Feed new data.

Private Attributes

float m_scale
float m_distance
GestureSpeedCalc m_speed

Detailed Description

Pinch gesture recognizer.

Definition at line 29 of file PinchRecognizer.h.


Member Function Documentation

WebCore::PinchRecognizer::distance (  )  const [inline]

Get the current pinch distance.

Returns:
length of the pinch gesture in pixels.

Definition at line 35 of file PinchRecognizer.h.

References m_distance.

void WebCore::PinchRecognizer::reset (  )  [virtual]

Reset the gesture data.

Resets the gesture data e.g. when the pinch gesture starts over.

Reimplemented from WebCore::GestureRecognizer.

Definition at line 33 of file PinchRecognizer.cpp.

References m_distance, WebCore::GestureRecognizer::m_refresh, and m_scale.

WebCore::PinchRecognizer::scale (  )  const [inline]

Get the current scale.

Get the current scale from the pinch gesture.

Returns:
current scale.

Definition at line 33 of file PinchRecognizer.h.

References m_scale.

WebCore::PinchRecognizer::scaleSpeed (  )  const [inline]

Gets current scale speed.

Get the current scale speed from the pinch gesture, as scale amount per second.

Returns:
current scale speed.

Definition at line 34 of file PinchRecognizer.h.

References m_speed, and WebCore::GestureSpeedCalc::speed().

Here is the call graph for this function:

void WebCore::PinchRecognizer::touchEvent ( const PlatformTouchEvent &  ev  )  [virtual]

Member Data Documentation

Definition at line 45 of file PinchRecognizer.h.

Definition at line 44 of file PinchRecognizer.h.

Definition at line 46 of file PinchRecognizer.h.


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