![]() |
Qt 6.x
The Qt SDK
|
#include <qquickhandlerpoint_p.h>
Public Member Functions | |
QQuickHandlerPoint () | |
\qmltype handlerPoint \instantiates QQuickHandlerPoint \inqmlmodule QtQuick | |
int | id () const |
Qt::MouseButtons | pressedButtons () const |
Qt::KeyboardModifiers | modifiers () const |
QPointF | pressPosition () const |
QPointF | scenePressPosition () const |
QPointF | sceneGrabPosition () const |
QPointF | position () const |
QPointF | scenePosition () const |
QVector2D | velocity () const |
qreal | rotation () const |
qreal | pressure () const |
QSizeF | ellipseDiameters () const |
QPointingDeviceUniqueId | uniqueId () const |
QPointingDevice * | device () const |
void | localize (QQuickItem *item) |
void | reset () |
void | reset (const QPointerEvent *event, const QEventPoint &point) |
void | reset (const QVector< QQuickHandlerPoint > &points) |
Properties | |
int | id |
QPointingDeviceUniqueId | uniqueId |
QPointF | position |
QPointF | scenePosition |
QPointF | pressPosition |
QPointF | scenePressPosition |
QPointF | sceneGrabPosition |
Qt::MouseButtons | pressedButtons |
Qt::KeyboardModifiers | modifiers |
QVector2D | velocity |
qreal | rotation |
qreal | pressure |
QSizeF | ellipseDiameters |
QPointingDevice * | device |
Friends | |
class | QQuickMultiPointHandler |
class | QQuickSinglePointHandler |
Definition at line 25 of file qquickhandlerpoint_p.h.
QT_BEGIN_NAMESPACE QQuickHandlerPoint::QQuickHandlerPoint | ( | ) |
\qmltype handlerPoint \instantiates QQuickHandlerPoint \inqmlmodule QtQuick
An event point.
A handler-owned QML representation of a QEventPoint.
It's possible to make bindings to properties of a handler's current \l {SinglePointHandler::point}{point} or \l {MultiPointHandler::centroid}{centroid}. For example:
The point is kept up-to-date when the DragHandler is actively responding to an \l eventPoint; but after the point is released, or when the current point is being handled by a different handler, position.x
and position.y
are 0.
Definition at line 40 of file qquickhandlerpoint.cpp.
|
inline |
Definition at line 60 of file qquickhandlerpoint_p.h.
|
inline |
Definition at line 57 of file qquickhandlerpoint_p.h.
|
inline |
Definition at line 46 of file qquickhandlerpoint_p.h.
void QQuickHandlerPoint::localize | ( | QQuickItem * | item | ) |
Definition at line 43 of file qquickhandlerpoint.cpp.
References item, and QGraphicsItem::mapFromScene().
|
inline |
Definition at line 48 of file qquickhandlerpoint_p.h.
|
inline |
Definition at line 52 of file qquickhandlerpoint_p.h.
|
inline |
Definition at line 47 of file qquickhandlerpoint_p.h.
|
inline |
Definition at line 49 of file qquickhandlerpoint_p.h.
|
inline |
Definition at line 56 of file qquickhandlerpoint_p.h.
void QQuickHandlerPoint::reset | ( | ) |
Definition at line 48 of file qquickhandlerpoint.cpp.
References Qt::NoButton, Qt::NoModifier, and QPointingDevice::primaryPointingDevice().
Referenced by QQuickPinchHandler::handlePointerEventImpl(), and QQuickSinglePointHandlerPrivate::reset().
void QQuickHandlerPoint::reset | ( | const QPointerEvent * | event, |
const QEventPoint & | point | ||
) |
Definition at line 66 of file qquickhandlerpoint.cpp.
References QEventPoint::ellipseDiameters, QEventPoint::id, QQuickDeliveryAgentPrivate::isTabletEvent(), QQuickDeliveryAgentPrivate::isTouchEvent(), QEventPoint::position, QEventPoint::Pressed, QEventPoint::pressure, QEventPoint::rotation, QEventPoint::scenePosition, QEventPoint::state, state, QEventPoint::uniqueId, QEventPoint::Updated, and QEventPoint::velocity.
void QQuickHandlerPoint::reset | ( | const QVector< QQuickHandlerPoint > & | points | ) |
Definition at line 103 of file qquickhandlerpoint.cpp.
References qWarning.
|
inline |
Definition at line 55 of file qquickhandlerpoint_p.h.
|
inline |
Definition at line 51 of file qquickhandlerpoint_p.h.
|
inline |
Definition at line 53 of file qquickhandlerpoint_p.h.
|
inline |
Definition at line 50 of file qquickhandlerpoint_p.h.
|
inline |
Definition at line 58 of file qquickhandlerpoint_p.h.
|
inline |
Definition at line 54 of file qquickhandlerpoint_p.h.
|
friend |
Definition at line 82 of file qquickhandlerpoint_p.h.
|
friend |
Definition at line 83 of file qquickhandlerpoint_p.h.
|
read |
Definition at line 86 of file qquickhandlerpoint_p.h.
|
read |
Definition at line 86 of file qquickhandlerpoint_p.h.
|
read |
Definition at line 86 of file qquickhandlerpoint_p.h.
Referenced by QQuickPointHandler::wantsEventPoint(), QQuickTapHandler::wantsEventPoint(), QQuickHoverHandler::wantsPointerEvent(), QQuickSinglePointHandler::wantsPointerEvent(), and QQuickWheelHandler::wantsPointerEvent().
|
read |
Definition at line 86 of file qquickhandlerpoint_p.h.
Referenced by QQuickSelectionRectanglePrivate::QQuickSelectionRectanglePrivate(), and QQuickTableViewPrivate::handleTap().
|
read |
Definition at line 86 of file qquickhandlerpoint_p.h.
Referenced by QQuickSelectionRectanglePrivate::QQuickSelectionRectanglePrivate(), QQuickWheelHandler::handleEventPoint(), QQuickTableViewHoverHandler::handleEventPoint(), QQuickTableViewPrivate::handleTap(), QQuickTableViewResizeHandler::updateDrag(), and QQuickTableViewResizeHandler::updateState().
|
read |
Definition at line 86 of file qquickhandlerpoint_p.h.
|
read |
Definition at line 86 of file qquickhandlerpoint_p.h.
Referenced by QQuickSelectionRectanglePrivate::QQuickSelectionRectanglePrivate(), and QQuickTableViewResizeHandler::updateState().
|
read |
Definition at line 86 of file qquickhandlerpoint_p.h.
|
read |
Definition at line 86 of file qquickhandlerpoint_p.h.
|
read |
Definition at line 86 of file qquickhandlerpoint_p.h.
Referenced by QQuickSinglePointHandler::onGrabChanged().
|
read |
Definition at line 86 of file qquickhandlerpoint_p.h.
Referenced by QQuickWheelHandler::handleEventPoint(), QQuickPinchHandler::handlePointerEventImpl(), QQuickSinglePointHandler::moveTarget(), and QWaylandQtShellChromePrivate::updateDecorationInteraction().
|
read |
Definition at line 86 of file qquickhandlerpoint_p.h.
Referenced by QQuickPinchHandler::handlePointerEventImpl(), and QWaylandQtShellChromePrivate::updateDecorationInteraction().
|
read |
Definition at line 86 of file qquickhandlerpoint_p.h.
|
read |
Definition at line 86 of file qquickhandlerpoint_p.h.