4#ifndef QPOINTINGDEVICE_P_H
5#define QPOINTINGDEVICE_P_H
18#include <QtCore/qloggingcategory.h>
19#include <QtGui/private/qevent_p.h>
20#include <QtGui/qpointingdevice.h>
21#include <QtGui/private/qtguiglobal_p.h>
22#include <QtGui/private/qinputdevice_p.h>
23#include <QtCore/private/qflatmap_p.h>
35 int maxPoints,
int buttonCount,
40 maximumTouchPoints(
qint8(maxPoints)), buttonCount(
qint8(buttonCount)),
43 pointingDeviceType =
true;
44 activePoints.reserve(maxPoints);
48 void sendTouchCancelEvent(
QTouchEvent *cancelEvent);
62 void removePointById(
int id);
63 QObject *firstActiveTarget()
const;
64 QWindow *firstActiveWindow()
const;
66 QObject *firstPointExclusiveGrabber()
const;
83 bool toolProximity =
false;
The QEventPoint class provides information about a point in a QPointerEvent.
static QObjectPrivate * get(QObject *o)
A base class for pointer events.
~QPointingDevicePrivate() override
EventPointMap activePoints
QPointingDevicePrivate(const QString &name, qint64 id, QInputDevice::DeviceType type, QPointingDevice::PointerType pType, QPointingDevice::Capabilities caps, int maxPoints, int buttonCount, const QString &seatName=QString(), QPointingDeviceUniqueId uniqueId=QPointingDeviceUniqueId())
static const QPointingDevicePrivate * get(const QPointingDevice *q)
QPointingDeviceUniqueId uniqueId
static QPointingDevicePrivate * get(QPointingDevice *q)
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.
PointerType
This enum represents what is interacting with the pointing device.
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QTouchEvent class contains parameters that describe a touch event.
Combined button and popup list for selecting options.
#define Q_DECLARE_LOGGING_CATEGORY(name)
GLdouble GLdouble GLdouble GLdouble q
QT_BEGIN_NAMESPACE typedef signed char qint8
static QPointingDevice::PointerType pointerType(unsigned currentCursor)
static QInputDevice::DeviceType deviceType(const UINT cursorType)
QList< QPointer< QObject > > passiveGrabbers
QPointer< QObject > exclusiveGrabberContext
QPointer< QObject > exclusiveGrabber
QList< QPointer< QObject > > passiveGrabbersContext