52 #ifndef QT_NO_GESTURES
63 class QGesturePrivate;
76 explicit
QGesture(QObject *parent = 0);
85 bool hasHotSpot() const;
93 void setGestureCancelPolicy(GestureCancelPolicy policy);
94 GestureCancelPolicy gestureCancelPolicy()
const;
102 friend class QGestureManager;
103 friend class QGraphicsScenePrivate;
106 class QPanGesturePrivate;
115 Q_PROPERTY(qreal acceleration READ acceleration WRITE setAcceleration)
125 qreal acceleration() const;
128 void setOffset(const
QPointF &value);
129 void setAcceleration(qreal value);
131 friend class QPanGestureRecognizer;
132 friend class QWinNativePanGestureRecognizer;
135 class QPinchGesturePrivate;
144 ScaleFactorChanged = 0x1,
145 RotationAngleChanged = 0x2,
146 CenterPointChanged = 0x4
148 Q_DECLARE_FLAGS(ChangeFlags, ChangeFlag)
150 Q_PROPERTY(ChangeFlags totalChangeFlags READ totalChangeFlags WRITE setTotalChangeFlags)
151 Q_PROPERTY(ChangeFlags changeFlags READ changeFlags WRITE setChangeFlags)
153 Q_PROPERTY(qreal totalScaleFactor READ totalScaleFactor WRITE setTotalScaleFactor)
154 Q_PROPERTY(qreal lastScaleFactor READ lastScaleFactor WRITE setLastScaleFactor)
155 Q_PROPERTY(qreal scaleFactor READ scaleFactor WRITE setScaleFactor)
157 Q_PROPERTY(qreal totalRotationAngle READ totalRotationAngle WRITE setTotalRotationAngle)
158 Q_PROPERTY(qreal lastRotationAngle READ lastRotationAngle WRITE setLastRotationAngle)
159 Q_PROPERTY(qreal rotationAngle READ rotationAngle WRITE setRotationAngle)
168 ChangeFlags totalChangeFlags() const;
169 void setTotalChangeFlags(ChangeFlags value);
171 ChangeFlags changeFlags() const;
172 void setChangeFlags(ChangeFlags value);
174 QPointF startCenterPoint() const;
175 QPointF lastCenterPoint() const;
177 void setStartCenterPoint(const
QPointF &value);
178 void setLastCenterPoint(const
QPointF &value);
179 void setCenterPoint(const
QPointF &value);
181 qreal totalScaleFactor() const;
182 qreal lastScaleFactor() const;
183 qreal scaleFactor() const;
184 void setTotalScaleFactor(qreal value);
185 void setLastScaleFactor(qreal value);
186 void setScaleFactor(qreal value);
188 qreal totalRotationAngle() const;
189 qreal lastRotationAngle() const;
190 qreal rotationAngle() const;
191 void setTotalRotationAngle(qreal value);
192 void setLastRotationAngle(qreal value);
193 void setRotationAngle(qreal value);
195 friend class QPinchGestureRecognizer;
206 class QSwipeGesturePrivate;
215 Q_PROPERTY(qreal swipeAngle READ swipeAngle WRITE setSwipeAngle)
222 SwipeDirection horizontalDirection()
const;
223 SwipeDirection verticalDirection()
const;
225 qreal swipeAngle()
const;
226 void setSwipeAngle(qreal value);
228 friend class QSwipeGestureRecognizer;
231 class QTapGesturePrivate;
243 void setPosition(const
QPointF &pos);
245 friend class QTapGestureRecognizer;
248 class QTapAndHoldGesturePrivate;
260 void setPosition(const
QPointF &pos);
262 static
void setTimeout(
int msecs);
263 static
int timeout();
265 friend class QTapAndHoldGestureRecognizer;
273 #endif // QT_NO_GESTURES
#define Q_PRIVATE_PROPERTY(d, text)
#define QT_BEGIN_NAMESPACE
GLsizei const GLfloat * value