![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qpointingdevice_p.h>
Classes | |
| struct | EventPointData |
Public Types | |
| using | EventPointMap = QVarLengthFlatMap<int, EventPointData, 20> |
| Public Types inherited from QObjectPrivate | |
| typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
| using | ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData> |
Definition at line 31 of file qpointingdevice_p.h.
| using QPointingDevicePrivate::EventPointMap = QVarLengthFlatMap<int, EventPointData, 20> |
Definition at line 77 of file qpointingdevice_p.h.
|
inline |
Definition at line 35 of file qpointingdevice_p.h.
|
overridedefault |
| bool QPointingDevicePrivate::addPassiveGrabber | ( | const QPointerEvent * | event, |
| const QEventPoint & | point, | ||
| QObject * | grabber ) |
Definition at line 569 of file qpointingdevice.cpp.
| void QPointingDevicePrivate::clearPassiveGrabbers | ( | const QPointerEvent * | event, |
| const QEventPoint & | point ) |
Definition at line 624 of file qpointingdevice.cpp.
| QObject * QPointingDevicePrivate::firstActiveTarget | ( | ) | const |
Find the first non-null target (widget) via QMutableEventPoint::target() in the active points. This is the widget that will receive any event that comes from a touchpad, even if some of the touchpoints fall spatially on other windows.
Definition at line 488 of file qpointingdevice.cpp.
| QWindow * QPointingDevicePrivate::firstActiveWindow | ( | ) | const |
Find the first non-null QWindow instance via QMutableEventPoint::window() in the active points. This is the window that will receive any event that comes from a touchpad, even if some of the touchpoints fall spatially on other windows.
Definition at line 503 of file qpointingdevice.cpp.
| QObject * QPointingDevicePrivate::firstPointExclusiveGrabber | ( | ) | const |
Return the exclusive grabber of the first point in activePoints. This is mainly for autotests that try to verify the "current" grabber outside the context of event delivery, which is something that the rest of the codebase should not be doing.
Definition at line 518 of file qpointingdevice.cpp.
|
inlinestatic |
Definition at line 92 of file qpointingdevice_p.h.
|
inlinestatic |
Definition at line 87 of file qpointingdevice_p.h.
| QPointingDevicePrivate::EventPointData * QPointingDevicePrivate::pointById | ( | int | id | ) | const |
Returns the active EventPointData instance with the given id, if available; if not, appends a new instance and returns it.
Definition at line 461 of file qpointingdevice.cpp.
|
static |
Finds the device instance identified by its systemId. Returns the device found, or nullptr if none was found.
Definition at line 404 of file qpointingdevice.cpp.
| QPointingDevicePrivate::EventPointData * QPointingDevicePrivate::queryPointById | ( | int | id | ) | const |
Returns the active EventPointData instance with the given id, if available, or nullptr if not.
Definition at line 449 of file qpointingdevice.cpp.
|
static |
Finds the device instance belonging to the drawing or eraser end of a particular stylus, identified by its deviceType, pointerType, uniqueId and systemId. Returns the device found, or nullptr if none was found.
If systemId is 0, it's not significant for the search.
If an instance matching the given deviceType and pointerType but with only a default-constructed uniqueId is found, it will be assumed to be the one we're looking for, its uniqueId will be updated to match the given uniqueId, and its capabilities will be updated to match the given capabilities. This is for the benefit of any platform plugin that can discover the tablet itself at startup, along with the supported stylus types, but then discovers specific styli later on as they come into proximity.
Definition at line 371 of file qpointingdevice.cpp.
| bool QPointingDevicePrivate::removeExclusiveGrabber | ( | const QPointerEvent * | event, |
| const QObject * | grabber ) |
Call QEventPoint::setExclusiveGrabber(nullptr) on each active point that has a grabber.
Definition at line 557 of file qpointingdevice.cpp.
Removes the given grabber as both passive and exclusive grabber from all points in activePoints where it's currently found. If cancel is true, the transition emitted from the grabChanged() signal will be CancelGrabExclusive or CancelGrabPassive. Otherwise it will be UngrabExclusive or UngrabPassive.
Definition at line 655 of file qpointingdevice.cpp.
| bool QPointingDevicePrivate::removePassiveGrabber | ( | const QPointerEvent * | event, |
| const QEventPoint & | point, | ||
| QObject * | grabber ) |
Definition at line 599 of file qpointingdevice.cpp.
| void QPointingDevicePrivate::removePointById | ( | int | id | ) |
Remove the active EventPointData instance with the given id.
Definition at line 476 of file qpointingdevice.cpp.
| void QPointingDevicePrivate::sendTouchCancelEvent | ( | QTouchEvent * | cancelEvent | ) |
First, ensure that the cancelEvent's QTouchEvent::points() list contains all points that have exclusive grabs. Then send the event to each object that has an exclusive grab of any of the points.
Definition at line 424 of file qpointingdevice.cpp.
| void QPointingDevicePrivate::setExclusiveGrabber | ( | const QPointerEvent * | event, |
| const QEventPoint & | point, | ||
| QObject * | exclusiveGrabber ) |
Definition at line 525 of file qpointingdevice.cpp.
|
static |
Definition at line 588 of file qpointingdevice.cpp.
|
static |
Finds the device instance belonging to the drawing or eraser end of a particular stylus, identified by its deviceType, pointerType and uniqueId. If an existing device is not found, a new one is created and registered, with a warning.
This function is called from QWindowSystemInterface. Platform plugins should use \l queryTabletDeviceInstance() to check whether a tablet stylus coming into proximity is previously known; if not known, the plugin should create and register the stylus.
Definition at line 696 of file qpointingdevice.cpp.
|
mutable |
Definition at line 78 of file qpointingdevice_p.h.
| qint8 QPointingDevicePrivate::buttonCount = 0 |
Definition at line 83 of file qpointingdevice_p.h.
| qint8 QPointingDevicePrivate::maximumTouchPoints = 0 |
Definition at line 82 of file qpointingdevice_p.h.
| QPointingDevice::PointerType QPointingDevicePrivate::pointerType = QPointingDevice::PointerType::Unknown |
Definition at line 84 of file qpointingdevice_p.h.
| quint32 QPointingDevicePrivate::toolId = 0 |
Definition at line 81 of file qpointingdevice_p.h.
| bool QPointingDevicePrivate::toolProximity = false |
Definition at line 85 of file qpointingdevice_p.h.
| QPointingDeviceUniqueId QPointingDevicePrivate::uniqueId |
Definition at line 80 of file qpointingdevice_p.h.