43 #include "private/qgesture_p.h" 44 #include "private/qstandardgestures_p.h" 46 #ifndef QT_NO_GESTURES 167 return d_func()->gestureType;
172 return d_func()->state;
177 return d_func()->hotSpot;
184 d->isHotSpotSet =
true;
189 return d_func()->isHotSpotSet;
194 d_func()->isHotSpotSet =
false;
229 d->gestureCancelPolicy =
static_cast<uint>(policy);
340 return d_func()->lastOffset;
345 return d_func()->offset;
351 return d->offset -
d->lastOffset;
356 return d_func()->acceleration;
361 d_func()->lastOffset = value;
366 d_func()->offset = value;
371 d_func()->acceleration = value;
568 return d_func()->totalChangeFlags;
573 d_func()->totalChangeFlags = value;
578 return d_func()->changeFlags;
583 d_func()->changeFlags = value;
588 return d_func()->startCenterPoint;
593 return d_func()->lastCenterPoint;
598 return d_func()->centerPoint;
603 d_func()->startCenterPoint = value;
608 d_func()->lastCenterPoint = value;
613 d_func()->centerPoint = value;
619 return d_func()->totalScaleFactor;
624 return d_func()->lastScaleFactor;
629 return d_func()->scaleFactor;
634 d_func()->totalScaleFactor = value;
639 d_func()->lastScaleFactor = value;
644 d_func()->scaleFactor = value;
650 return d_func()->totalRotationAngle;
655 return d_func()->lastRotationAngle;
660 return d_func()->rotationAngle;
665 d_func()->totalRotationAngle = value;
670 d_func()->lastRotationAngle = value;
675 d_func()->rotationAngle = value;
770 if (
d->swipeAngle < 0 ||
d->swipeAngle == 90 ||
d->swipeAngle == 270)
772 else if (
d->swipeAngle < 90 ||
d->swipeAngle > 270)
781 if (
d->swipeAngle <= 0 ||
d->swipeAngle == 180)
783 else if (
d->swipeAngle < 180)
791 return d_func()->swipeAngle;
796 d_func()->swipeAngle = value;
833 return d_func()->position;
838 d_func()->position = value;
875 return d_func()->position;
880 d_func()->position = value;
913 #include <moc_qgesture.cpp> 915 #endif // QT_NO_GESTURES
The QPanGesture class describes a panning gesture made by the user.
#define QT_END_NAMESPACE
This macro expands to.
void setCenterPoint(const QPointF &value)
qreal lastRotationAngle() const
qreal totalRotationAngle() const
void setLastScaleFactor(qreal value)
QPointF startCenterPoint() const
QTapAndHoldGesture(QObject *parent=0)
The QPointF class defines a point in the plane using floating point precision.
QTapGesture(QObject *parent=0)
void setChangeFlags(ChangeFlags value)
static int timeout()
Gets the timeout, in milliseconds, before the gesture triggers.
The QObject class is the base class of all Qt objects.
qreal acceleration() const
QPointF lastCenterPoint() const
qreal lastScaleFactor() const
qreal totalScaleFactor() const
GestureCancelPolicy
This enum describes how accepting a gesture can cancel other gestures automatically.
ChangeFlags changeFlags() const
void setTotalScaleFactor(qreal value)
#define QT_BEGIN_NAMESPACE
This macro expands to.
qreal scaleFactor() const
QPanGesture(QObject *parent=0)
qreal rotationAngle() const
void setLastRotationAngle(qreal value)
QPinchGesture(QObject *parent=0)
Qt::GestureState state() const
void setScaleFactor(qreal value)
SwipeDirection horizontalDirection() const
SwipeDirection verticalDirection() const
void setOffset(const QPointF &value)
void setPosition(const QPointF &pos)
ChangeFlags totalChangeFlags() const
GestureCancelPolicy gestureCancelPolicy() const
Qt::GestureType gestureType() const
~QGesture()
Destroys the gesture object.
void setLastOffset(const QPointF &value)
The QGesture class represents a gesture, containing properties that describe the corresponding user i...
QSwipeGesture(QObject *parent=0)
Qt::GestureType gestureType
the type of the gesture
void setHotSpot(const QPointF &value)
QPointF lastOffset() const
QObject * parent() const
Returns a pointer to the parent object.
QGesture(QObject *parent=0)
Constructs a new gesture object with the given parent.
QPointF centerPoint() const
void setGestureCancelPolicy(GestureCancelPolicy policy)
void setTotalRotationAngle(qreal value)
static void setTimeout(int msecs)
Set the timeout, in milliseconds, before the gesture triggers.
void setSwipeAngle(qreal value)
void setLastCenterPoint(const QPointF &value)
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...
void setAcceleration(qreal value)
void setStartCenterPoint(const QPointF &value)
void setPosition(const QPointF &pos)
void setTotalChangeFlags(ChangeFlags value)
void setRotationAngle(qreal value)