Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
26{
28 Q_PROPERTY(QQuickHandlerPoint point READ point NOTIFY pointChanged)
29
30public:
31 explicit QQuickSinglePointHandler(QQuickItem *parent = nullptr);
32
33 QQuickHandlerPoint point() const;
34
37
38protected:
40
41 bool wantsPointerEvent(QPointerEvent *event) override;
42 void handlePointerEventImpl(QPointerEvent *event) override;
43 virtual void handleEventPoint(QPointerEvent *event, QEventPoint &point);
44
46 void onGrabChanged(QQuickPointerHandler *grabber, QPointingDevice::GrabTransition transition, QPointerEvent *event, QEventPoint &point) override;
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:217
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:63
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