4#ifndef QQUICKMULTIPOINTTOUCHAREA_H
5#define QQUICKMULTIPOINTTOUCHAREA_H
18#include <private/qtquickglobal_p.h>
20#include <QtQuick/qquickitem.h>
22#include <QtGui/qevent.h>
23#include <QtGui/qguiapplication.h>
24#include <QtGui/qstylehints.h>
26#include <QtCore/qlist.h>
27#include <QtCore/qmap.h>
28#include <QtCore/qpointer.h>
36 Q_PROPERTY(
int pointId READ pointId NOTIFY pointIdChanged FINAL)
38 Q_PROPERTY(
bool pressed READ pressed NOTIFY pressedChanged FINAL)
41 Q_PROPERTY(
QSizeF ellipseDiameters READ ellipseDiameters NOTIFY ellipseDiametersChanged REVISION(2, 9) FINAL)
43 Q_PROPERTY(
qreal rotation READ rotation NOTIFY rotationChanged REVISION(2, 9) FINAL)
49 Q_PROPERTY(
qreal previousX READ previousX NOTIFY previousXChanged FINAL)
50 Q_PROPERTY(
qreal previousY READ previousY NOTIFY previousYChanged FINAL)
58 : _qmlDefined(qmlDefined)
62 void setPointId(
int id);
72 void setEllipseDiameters(
const QSizeF &
d);
75 void setPressure(
qreal pressure);
81 void setVelocity(
const QVector2D &velocity);
88 bool inUse()
const {
return _inUse; }
92 void setPressed(
bool pressed);
95 void setStartX(
qreal startX);
98 void setStartY(
qreal startY);
101 void setPreviousX(
qreal previousX);
104 void setPreviousY(
qreal previousY);
107 void setSceneX(
qreal sceneX);
110 void setSceneY(
qreal sceneY);
119 void pressureChanged();
121 void velocityChanged();
123 void startXChanged();
124 void startYChanged();
125 void previousXChanged();
126 void previousYChanged();
127 void sceneXChanged();
128 void sceneYChanged();
135 qreal _pressure = 0.0;
142 bool _pressed =
false;
145 qreal _previousX = 0.0;
146 qreal _previousY = 0.0;
159 QML_UNCREATABLE(
"GestureEvent is only available in the context of handling the gestureStarted signal from MultiPointTouchArea.")
175 qreal _dragThreshold;
185 Q_PROPERTY(
int minimumTouchPoints READ minimumTouchPoints WRITE setMinimumTouchPoints NOTIFY minimumTouchPointsChanged FINAL)
186 Q_PROPERTY(
int maximumTouchPoints READ maximumTouchPoints WRITE setMaximumTouchPoints NOTIFY maximumTouchPointsChanged FINAL)
187 Q_PROPERTY(
bool mouseEnabled READ mouseEnabled WRITE setMouseEnabled NOTIFY mouseEnabledChanged FINAL)
195 int minimumTouchPoints()
const;
196 void setMinimumTouchPoints(
int num);
197 int maximumTouchPoints()
const;
198 void setMaximumTouchPoints(
int num);
200 void setMouseEnabled(
bool arg);
213 return q->_touchPrototypes.
size();
222#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0)
234#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0)
249 void mouseUngrabEvent()
override;
250 void touchUngrabEvent()
override;
255 void clearTouchLists();
260 void updateTouchData(
QEvent*, RemapEventPoints remap = RemapEventPoints::No);
265 QSGNode *updatePaintNode(
QSGNode *, UpdatePaintNodeData *)
override;
269 void setTouchEventsEnabled(
bool enable);
270 void itemChange(ItemChange change,
const ItemChangeData &
data)
override;
274 void ungrab(
bool normalRelease =
false);
280 int _minimumTouchPoints;
281 int _maximumTouchPoints;
The QEventPoint class provides information about a point in a QPointerEvent.
T value(const Key &key, const T &defaultValue=T()) const
\inmodule QtCore\reentrant
QPointingDeviceUniqueId identifies a unique object, such as a tagged token or stylus,...
The QPointingDevice class describes a device from which mouse, touch or tablet events originate.
The QQmlListProperty class allows applications to expose list-like properties of QObject-derived clas...
QQmlListProperty< QObject > touchPoints()
qreal dragThreshold() const
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
static void touchPoint_append(QQmlListProperty< QQuickTouchPoint > *list, QQuickTouchPoint *touch)
void canceled(const QList< QObject * > &points)
void mouseEnabledChanged()
bool mouseEnabled() const
QQmlListProperty< QQuickTouchPoint > touchPoints()
static QQuickTouchPoint * touchPoint_at(QQmlListProperty< QQuickTouchPoint > *list, qsizetype index)
void minimumTouchPointsChanged()
static qsizetype touchPoint_count(QQmlListProperty< QQuickTouchPoint > *list)
void addTouchPrototype(QQuickTouchPoint *prototype)
void maximumTouchPointsChanged()
void gestureStarted(QQuickGrabGestureEvent *gesture)
void updated(const QList< QObject * > &points)
void released(const QList< QObject * > &points)
void pressed(const QList< QObject * > &points)
void touchUpdated(const QList< QObject * > &points)
QSizeF ellipseDiameters() const
QPointingDeviceUniqueId uniqueId() const
void setInUse(bool inUse)
Q_REVISION(2, 9) void uniqueIdChanged()
QVector2D velocity() const
bool isQmlDefined() const
\inmodule QtCore\reentrant
\group qtquick-scenegraph-nodes \title Qt Quick Scene Graph Node classes
The QTouchEvent class contains parameters that describe a touch event.
The QVector2D class represents a vector or vertex in 2D space.
Combined button and popup list for selecting options.
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void
static int area(const QSize &s)
n void setPosition(void) \n\
GLint GLint GLint GLint GLint x
[0]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLfixed GLfixed GLint GLint GLfixed points
GLdouble GLdouble GLdouble GLdouble q
#define QML_DECLARE_TYPE(TYPE)
#define QML_UNCREATABLE(REASON)
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent