QtBase  v6.3.1
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
QPointingDevicePrivate Class Reference

#include <qpointingdevice_p.h>

Inheritance diagram for QPointingDevicePrivate:
Inheritance graph
[legend]
Collaboration diagram for QPointingDevicePrivate:
Collaboration graph
[legend]

Classes

struct  EventPointData
 

Public Types

using EventPointMap = QFlatMap< int, EventPointData >
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData >
 

Public Member Functions

 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())
 
 ~QPointingDevicePrivate () override
 
void sendTouchCancelEvent (QTouchEvent *cancelEvent)
 
EventPointDataqueryPointById (int id) const
 
EventPointDatapointById (int id) const
 
void removePointById (int id)
 
QObjectfirstActiveTarget () const
 
QWindowfirstActiveWindow () const
 
QObjectfirstPointExclusiveGrabber () const
 
void setExclusiveGrabber (const QPointerEvent *event, const QEventPoint &point, QObject *exclusiveGrabber)
 
bool removeExclusiveGrabber (const QPointerEvent *event, const QObject *grabber)
 
bool addPassiveGrabber (const QPointerEvent *event, const QEventPoint &point, QObject *grabber)
 
bool removePassiveGrabber (const QPointerEvent *event, const QEventPoint &point, QObject *grabber)
 
void clearPassiveGrabbers (const QPointerEvent *event, const QEventPoint &point)
 
void removeGrabber (QObject *grabber, bool cancel=false)
 
- Public Member Functions inherited from QInputDevicePrivate
 QInputDevicePrivate (const QString &name, qint64 winSysId, QInputDevice::DeviceType type, QInputDevice::Capabilities caps=QInputDevice::Capability::None, const QString &seatName=QString())
 
 ~QInputDevicePrivate () override
 
void setAvailableVirtualGeometry (QRect a)
 
- Public Member Functions inherited from QObjectPrivate
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData)
 
void _q_reregisterTimers (void *pointer)
 
bool isSender (const QObject *receiver, const char *signal) const
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () const
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void ensureConnectionData ()
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Static Public Member Functions

static bool setPassiveGrabberContext (EventPointData *epd, QObject *grabber, QObject *context)
 
static QPointingDevicePrivateget (QPointingDevice *q)
 
static const QPointingDevicePrivateget (const QPointingDevice *q)
 
static const QPointingDevicetabletDevice (QInputDevice::DeviceType deviceType, QPointingDevice::PointerType pointerType, QPointingDeviceUniqueId uniqueId)
 
static const QPointingDevicequeryTabletDevice (QInputDevice::DeviceType deviceType, QPointingDevice::PointerType pointerType, QPointingDeviceUniqueId uniqueId, QInputDevice::Capabilities capabilities=QInputDevice::Capability::None, qint64 systemId=0)
 
static const QPointingDevicepointingDeviceById (qint64 systemId)
 
- Static Public Member Functions inherited from QInputDevicePrivate
static void registerDevice (const QInputDevice *dev)
 
static void unregisterDevice (const QInputDevice *dev)
 
static bool isRegistered (const QInputDevice *dev)
 
static const QInputDevicefromId (qint64 systemId)
 
static QInputDevicePrivateget (QInputDevice *q)
 
static const QInputDevicePrivateget (const QInputDevice *q)
 
- Static Public Member Functions inherited from QObjectPrivate
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (const QObject *o)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
 
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static bool disconnect (const QObject *sender, int signal_index, void **slot)
 
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)
 
static bool disconnect (Connection *c)
 

Public Attributes

EventPointMap activePoints
 
QPointingDeviceUniqueId uniqueId
 
quint32 toolId = 0
 
qint8 maximumTouchPoints = 0
 
qint8 buttonCount = 0
 
QPointingDevice::PointerType pointerType = QPointingDevice::PointerType::Unknown
 
bool toolProximity = false
 
- Public Attributes inherited from QInputDevicePrivate
QString name
 
QString seatName
 
QString busId
 
QRect availableVirtualGeometry
 
voidqqExtra = nullptr
 
qint64 systemId = 0
 
QInputDevice::Capabilities capabilities = QInputDevice::Capability::None
 
QInputDevice::DeviceType deviceType = QInputDevice::DeviceType::Unknown
 
bool pointingDeviceType = false
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union {
   QObject *   currentChildBeingDeleted
 
   QAbstractDeclarativeData *   declarativeData
 
}; 
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint unused: 24
 
int postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Detailed Description

Definition at line 65 of file qpointingdevice_p.h.

Member Typedef Documentation

◆ EventPointMap

Definition at line 111 of file qpointingdevice_p.h.

Constructor & Destructor Documentation

◆ QPointingDevicePrivate()

QPointingDevicePrivate::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() 
)
inline

Definition at line 69 of file qpointingdevice_p.h.

◆ ~QPointingDevicePrivate()

QPointingDevicePrivate::~QPointingDevicePrivate ( )
overridedefault

Member Function Documentation

◆ addPassiveGrabber()

bool QPointingDevicePrivate::addPassiveGrabber ( const QPointerEvent event,
const QEventPoint point,
QObject grabber 
)

Definition at line 535 of file qpointingdevice.cpp.

Here is the call graph for this function:

◆ clearPassiveGrabbers()

void QPointingDevicePrivate::clearPassiveGrabbers ( const QPointerEvent event,
const QEventPoint point 
)

Definition at line 590 of file qpointingdevice.cpp.

Here is the call graph for this function:

◆ firstActiveTarget()

QObject * QPointingDevicePrivate::firstActiveTarget ( ) const

Definition at line 455 of file qpointingdevice.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ firstActiveWindow()

QWindow * QPointingDevicePrivate::firstActiveWindow ( ) const

Definition at line 470 of file qpointingdevice.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ firstPointExclusiveGrabber()

QObject * QPointingDevicePrivate::firstPointExclusiveGrabber ( ) const

Definition at line 485 of file qpointingdevice.cpp.

Here is the call graph for this function:

◆ get() [1/2]

static const QPointingDevicePrivate* QPointingDevicePrivate::get ( const QPointingDevice q)
inlinestatic

Definition at line 126 of file qpointingdevice_p.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get() [2/2]

static QPointingDevicePrivate* QPointingDevicePrivate::get ( QPointingDevice q)
inlinestatic

Definition at line 121 of file qpointingdevice_p.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pointById()

QPointingDevicePrivate::EventPointData * QPointingDevicePrivate::pointById ( int  id) const

Definition at line 428 of file qpointingdevice.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pointingDeviceById()

const QPointingDevice * QPointingDevicePrivate::pointingDeviceById ( qint64  systemId)
static

Definition at line 371 of file qpointingdevice.cpp.

Here is the call graph for this function:

◆ queryPointById()

QPointingDevicePrivate::EventPointData * QPointingDevicePrivate::queryPointById ( int  id) const

Definition at line 416 of file qpointingdevice.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ queryTabletDevice()

const QPointingDevice * QPointingDevicePrivate::queryTabletDevice ( QInputDevice::DeviceType  deviceType,
QPointingDevice::PointerType  pointerType,
QPointingDeviceUniqueId  uniqueId,
QInputDevice::Capabilities  capabilities = QInputDevice::Capability::None,
qint64  systemId = 0 
)
static

Definition at line 338 of file qpointingdevice.cpp.

◆ removeExclusiveGrabber()

bool QPointingDevicePrivate::removeExclusiveGrabber ( const QPointerEvent event,
const QObject grabber 
)

Definition at line 523 of file qpointingdevice.cpp.

Here is the call graph for this function:

◆ removeGrabber()

void QPointingDevicePrivate::removeGrabber ( QObject grabber,
bool  cancel = false 
)

Definition at line 621 of file qpointingdevice.cpp.

Here is the call graph for this function:

◆ removePassiveGrabber()

bool QPointingDevicePrivate::removePassiveGrabber ( const QPointerEvent event,
const QEventPoint point,
QObject grabber 
)

Definition at line 565 of file qpointingdevice.cpp.

Here is the call graph for this function:

◆ removePointById()

void QPointingDevicePrivate::removePointById ( int  id)

Definition at line 443 of file qpointingdevice.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendTouchCancelEvent()

void QPointingDevicePrivate::sendTouchCancelEvent ( QTouchEvent cancelEvent)

Definition at line 391 of file qpointingdevice.cpp.

Here is the call graph for this function:

◆ setExclusiveGrabber()

void QPointingDevicePrivate::setExclusiveGrabber ( const QPointerEvent event,
const QEventPoint point,
QObject exclusiveGrabber 
)

Definition at line 492 of file qpointingdevice.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setPassiveGrabberContext()

bool QPointingDevicePrivate::setPassiveGrabberContext ( QPointingDevicePrivate::EventPointData epd,
QObject grabber,
QObject context 
)
static

Definition at line 554 of file qpointingdevice.cpp.

Here is the call graph for this function:

◆ tabletDevice()

const QPointingDevice * QPointingDevicePrivate::tabletDevice ( QInputDevice::DeviceType  deviceType,
QPointingDevice::PointerType  pointerType,
QPointingDeviceUniqueId  uniqueId 
)
static

Definition at line 662 of file qpointingdevice.cpp.

Member Data Documentation

◆ activePoints

EventPointMap QPointingDevicePrivate::activePoints
mutable

Definition at line 112 of file qpointingdevice_p.h.

◆ buttonCount

qint8 QPointingDevicePrivate::buttonCount = 0

Definition at line 117 of file qpointingdevice_p.h.

◆ maximumTouchPoints

qint8 QPointingDevicePrivate::maximumTouchPoints = 0

Definition at line 116 of file qpointingdevice_p.h.

◆ pointerType

Definition at line 118 of file qpointingdevice_p.h.

◆ toolId

quint32 QPointingDevicePrivate::toolId = 0

Definition at line 115 of file qpointingdevice_p.h.

◆ toolProximity

bool QPointingDevicePrivate::toolProximity = false

Definition at line 119 of file qpointingdevice_p.h.

◆ uniqueId

QPointingDeviceUniqueId QPointingDevicePrivate::uniqueId

Definition at line 114 of file qpointingdevice_p.h.


The documentation for this class was generated from the following files: