Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquicksinglepointhandler_p.h
Go to the documentation of this file.
1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQUICKPOINTERSINGLEHANDLER_H
5#define QQUICKPOINTERSINGLEHANDLER_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
20
22
24
25class Q_QUICK_PRIVATE_EXPORT QQuickSinglePointHandler : public QQuickPointerDeviceHandler
26{
28 Q_PROPERTY(QQuickHandlerPoint point READ point NOTIFY pointChanged FINAL)
29
30public:
31 explicit QQuickSinglePointHandler(QQuickItem *parent = nullptr);
32
33 QQuickHandlerPoint point() const;
34
37
38protected:
40
43 virtual void handleEventPoint(QPointerEvent *event, QEventPoint &point);
44
47
48 void setIgnoreAdditionalPoints(bool v = true);
49
50 void moveTarget(QPointF pos, QEventPoint &point);
51
52 void setPointId(int id);
53
54 Q_DECLARE_PRIVATE(QQuickSinglePointHandler)
55};
56
58
59#endif // QQUICKPOINTERSINGLEHANDLER_H
The QEventPoint class provides information about a point in a QPointerEvent.
Definition qeventpoint.h:20
\inmodule QtCore\reentrant
Definition qpoint.h:214
A base class for pointer events.
Definition qevent.h:73
GrabTransition
This enum represents a transition of exclusive or passive grab from one object (possibly nullptr) to ...
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:64
bool wantsPointerEvent(QPointerEvent *event) override
It is the responsibility of this function to decide whether the event could be relevant at all to thi...
virtual void onGrabChanged(QQuickPointerHandler *grabber, QPointingDevice::GrabTransition transition, QPointerEvent *event, QEventPoint &point)
Notification that the grab has changed in some way which is relevant to this handler.
virtual void handlePointerEventImpl(QPointerEvent *event)
This function can be overridden to implement whatever behavior a specific subclass is intended to hav...
QEventPoint & currentPoint(QPointerEvent *ev)
Combined button and popup list for selecting options.
GLsizei const GLfloat * v
[13]
struct _cl_event * event
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SIGNALS
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent