Home · All Classes · Main Classes · Deprecated
Properties

MSwipeRecognizerStyle Class Reference

Defines a style for a MSwipeRecognizerStyle class. More...

Inherits MStyle.

List of all members.

Properties

int timeout
qreal distanceThreshold
qreal angleThreshold
qreal angleSnappingThreshold
qreal jitterThreshold

Detailed Description

Defines a style for a MSwipeRecognizerStyle class.

This class defines the default threshold values that are used by swipe gesture recognizers.


Property Documentation

qreal MSwipeRecognizerStyle::angleSnappingThreshold [read, write]

An angle threshold which is used to check if the pointer was moved horizontally or vertically. If the angle of swipe is equal to 0,90,180 or 270 degrees with epsilon equal to angleSnappingThreshold, then the final swipe angle is snapped to the closest of 0,90,180 or 270 degree angles.

qreal MSwipeRecognizerStyle::angleThreshold [read, write]

An angle threshold which is used to check if the pointer was moved consistently after the gesture was recognized. If the pointer skewed its movement by more than angleThreshold from the angle that was initially recognized the gesture is canceled.

qreal MSwipeRecognizerStyle::distanceThreshold [read, write]

A distance threshold which is used to check if the pointer was moved far enough to recognize tap&hold gesture.

qreal MSwipeRecognizerStyle::jitterThreshold [read, write]

The jitterThreshold is a movement value used to avoid canceling gesture because of jitter effect when user removes his finger from the screen. When that happens the screen driver can sometimes report rapidly changing positions of the pointer and that could be interpreted as a change of direction.

int MSwipeRecognizerStyle::timeout [read, write]

A time threshold which is used to check if the pointer was moved fast enough to recognize tap&hold gesture.


Copyright © 2010 Nokia Corporation
MeeGo Touch