Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qquickpointerhandler_p_p.h>
Static Public Member Functions | |
static QQuickPointerHandlerPrivate * | get (QQuickPointerHandler *q) |
static const QQuickPointerHandlerPrivate * | get (const QQuickPointerHandler *q) |
static QVector< QObject * > & | deviceDeliveryTargets (const QInputDevice *device) |
Static Public Member Functions inherited from QObjectPrivate | |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (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) |
Additional Inherited Members | |
Public Types inherited from QObjectPrivate | |
typedef void(*) | StaticMetaCallFunction(QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData> |
Definition at line 26 of file qquickpointerhandler_p_p.h.
QQuickPointerHandlerPrivate::QQuickPointerHandlerPrivate | ( | ) |
\qmlsignal QtQuick::PointerHandler::grabChanged(PointerDevice::GrabTransition transition, eventPoint point)
This signal is emitted when the grab has changed in some way which is relevant to this handler.
The transition (verb) tells what happened. The point (object) is the point that was grabbed or ungrabbed.
Valid values for transition are:
\value PointerDevice.GrabExclusive This handler has taken primary responsibility for handling the point. \value PointerDevice.UngrabExclusive This handler has given up its previous exclusive grab. \value PointerDevice.CancelGrabExclusive This handler's exclusive grab has been taken over or cancelled. \value PointerDevice.GrabPassive This handler has acquired a passive grab, to monitor the point. \value PointerDevice.UngrabPassive This handler has given up its previous passive grab. \value PointerDevice.CancelGrabPassive This handler's previous passive grab has terminated abnormally.
\qmlsignal QtQuick::PointerHandler::canceled(eventPoint point)
If this handler has already grabbed the given point, this signal is emitted when the grab is stolen by a different Pointer Handler or Item.
Definition at line 870 of file qquickpointerhandler.cpp.
|
static |
Definition at line 933 of file qquickpointerhandler.cpp.
bool QQuickPointerHandlerPrivate::dragOverThreshold | ( | const QEventPoint & | point | ) | const |
Returns true
if the movement delta of point in pixels (calculated as QEventPoint::scenePosition() - QEventPoint::scenePressPosition()) exceeds QQuickPointerHandler::dragThreshold().
Definition at line 926 of file qquickpointerhandler.cpp.
bool QQuickPointerHandlerPrivate::dragOverThreshold | ( | qreal | d, |
Qt::Axis | axis, | ||
const TEventPoint & | p ) const |
Returns true
if the movement delta d in pixels along the axis exceeds QQuickPointerHandler::dragThreshold() or QEventPoint::velocity() exceeds QStyleHints::startDragVelocity().
Definition at line 893 of file qquickpointerhandler.cpp.
bool QQuickPointerHandlerPrivate::dragOverThreshold | ( | QVector2D | delta | ) | const |
Returns true
if the movement delta in pixels exceeds QQuickPointerHandler::dragThreshold().
Definition at line 912 of file qquickpointerhandler.cpp.
|
inlinestatic |
Definition at line 32 of file qquickpointerhandler_p_p.h.
|
inlinestatic |
Definition at line 31 of file qquickpointerhandler_p_p.h.
|
inlinevirtual |
Reimplemented in QQuickHoverHandlerPrivate, and QQuickHoverHandlerPrivate.
Definition at line 43 of file qquickpointerhandler_p_p.h.
|
inlinevirtual |
Reimplemented in QQuickHoverHandlerPrivate, and QQuickHoverHandlerPrivate.
Definition at line 42 of file qquickpointerhandler_p_p.h.
bool QQuickPointerHandlerPrivate::active |
Definition at line 55 of file qquickpointerhandler_p_p.h.
QPointerEvent* QQuickPointerHandlerPrivate::currentEvent = nullptr |
Definition at line 47 of file qquickpointerhandler_p_p.h.
bool QQuickPointerHandlerPrivate::cursorDirty |
Definition at line 60 of file qquickpointerhandler_p_p.h.
bool QQuickPointerHandlerPrivate::cursorSet |
Definition at line 59 of file qquickpointerhandler_p_p.h.
Qt::CursorShape QQuickPointerHandlerPrivate::cursorShape |
Definition at line 53 of file qquickpointerhandler_p_p.h.
qint16 QQuickPointerHandlerPrivate::dragThreshold = -1 |
Definition at line 51 of file qquickpointerhandler_p_p.h.
bool QQuickPointerHandlerPrivate::enabled |
Definition at line 54 of file qquickpointerhandler_p_p.h.
uint8_t QQuickPointerHandlerPrivate::grabPermissions |
Definition at line 52 of file qquickpointerhandler_p_p.h.
bool QQuickPointerHandlerPrivate::hadKeepMouseGrab |
Definition at line 57 of file qquickpointerhandler_p_p.h.
bool QQuickPointerHandlerPrivate::hadKeepTouchGrab |
Definition at line 58 of file qquickpointerhandler_p_p.h.
quint64 QQuickPointerHandlerPrivate::lastEventTime = 0 |
Definition at line 50 of file qquickpointerhandler_p_p.h.
qreal QQuickPointerHandlerPrivate::m_margin = 0 |
Definition at line 49 of file qquickpointerhandler_p_p.h.
QQuickItem* QQuickPointerHandlerPrivate::target = nullptr |
Definition at line 48 of file qquickpointerhandler_p_p.h.
bool QQuickPointerHandlerPrivate::targetExplicitlySet |
Definition at line 56 of file qquickpointerhandler_p_p.h.