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>
24#include <QtCore/qpointer.h>
25#include <QtCore/private/qflatmap_p.h>
37 int maxPoints,
int buttonCount,
42 maximumTouchPoints(
qint8(maxPoints)), buttonCount(
qint8(buttonCount)),
45 pointingDeviceType =
true;
46 activePoints.reserve(maxPoints);
50 void sendTouchCancelEvent(
QTouchEvent *cancelEvent);
64 void removePointById(
int id);
65 QObject *firstActiveTarget()
const;
66 QWindow *firstActiveWindow()
const;
68 QObject *firstPointExclusiveGrabber()
const;
85 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)
QVarLengthFlatMap< int, EventPointData, 20 > EventPointMap
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