45 #include <QtCore/qobject.h> 46 #include <QtCore/qlist.h> 47 #include <QtCore/qdatetime.h> 48 #include <QtCore/qpoint.h> 49 #include <QtCore/qrect.h> 50 #include <QtCore/qmetatype.h> 52 #ifndef QT_NO_GESTURES 84 void setHotSpot(const
QPointF &value);
85 bool hasHotSpot() const;
125 qreal acceleration() const;
127 void setLastOffset(const
QPointF &value);
128 void setOffset(const
QPointF &value);
129 void setAcceleration(
qreal value);
144 ScaleFactorChanged = 0x1,
145 RotationAngleChanged = 0x2,
146 CenterPointChanged = 0x4
150 ChangeFlags totalChangeFlags;
151 ChangeFlags changeFlags;
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);
225 qreal swipeAngle()
const;
226 void setSwipeAngle(
qreal value);
243 void setPosition(const
QPointF &pos);
260 void setPosition(const
QPointF &pos);
262 static
void setTimeout(
int msecs);
263 static
int timeout();
273 #endif // QT_NO_GESTURES
The QPanGesture class describes a panning gesture made by the user.
#define QT_END_NAMESPACE
This macro expands to.
#define Q_PRIVATE_PROPERTY(d, define Q_REVISION(v)
#define Q_DECLARE_FLAGS(Flags, Enum)
The Q_DECLARE_FLAGS() macro expands to.
The QPointF class defines a point in the plane using floating point precision.
The QTapAndHoldGesture class describes a tap-and-hold (aka LongTap) gesture made by the user...
static qreal position(QGraphicsObject *item, QDeclarativeAnchorLine::AnchorLine anchorLine)
The QObject class is the base class of all Qt objects.
GestureCancelPolicy
This enum describes how accepting a gesture can cancel other gestures automatically.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QGestureEvent class provides the description of triggered gestures.
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
The Q_DECLARE_OPERATORS_FOR_FLAGS() macro declares global operator|() functions for Flags...
The QPinchGesture class describes a pinch gesture made by the user.
ChangeFlag
This enum describes the changes that can occur to the properties of the gesture object.
The QGesture class represents a gesture, containing properties that describe the corresponding user i...
The QGestureRecognizer class provides the infrastructure for gesture recognition. ...
The QTapGesture class describes a tap gesture made by the user.
#define Q_DECLARE_PRIVATE(Class)
The QSwipeGesture class describes a swipe gesture made by the user.
SwipeDirection
This enum describes the possible directions for the gesture's motion along the horizontal and vertica...