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
qquick3dxrvirtualmouse_p.h
Go to the documentation of this file.
1// Copyright (C) 2024 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QQUICK3DXRVIRTUALMOUSE_P_H
5#define QQUICK3DXRVIRTUALMOUSE_P_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
18#include <QObject>
19#include <QEvent>
20#include <QtQml/qqml.h>
21
23
24class QQuick3DXrView;
25class QQuick3DNode;
26
28{
36
37 QML_NAMED_ELEMENT(XrVirtualMouse)
39
40public:
42
43 bool rightMouseButton() const;
44 bool leftMouseButton() const;
45 bool middleMouseButton() const;
46
47 QQuick3DNode *source() const;
48 QQuick3DXrView* view() const;
49
50 bool enabled() const;
51
52public Q_SLOTS:
58 void setEnabled(bool enabled);
59
61 void moveEvent();
62
70
72 void generateEvent(QEvent::Type type, Qt::MouseButton button = Qt::NoButton);
73
74 bool m_rightMouseButton = false;
75 bool m_leftMouseButton = false;
76 bool m_middleMouseButton = false;
77 QQuick3DNode* m_source = nullptr;
78 QQuick3DXrView* m_view = nullptr;
79 bool m_enabled = true;
80};
81
83
84#endif // QQUICK3DXRVIRTUALMOUSE_P_H
\inmodule QtCore
Definition qcoreevent.h:45
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
void setRightMouseButton(bool rightMouseButton)
void enabledChanged(bool enabled)
void sourceChanged(QQuick3DNode *source)
void setView(QQuick3DXrView *view)
void viewChanged(QQuick3DXrView *view)
void rightMouseButtonChanged(bool rightMouseButton)
void leftMouseButtonChanged(bool leftMouseButton)
void middleMouseButtonChanged(bool middleMouseButton)
void setMiddleMouseButton(bool middleMouseButton)
void setSource(QQuick3DNode *source)
void setLeftMouseButton(bool leftMouseButton)
QPushButton * button
[2]
Combined button and popup list for selecting options.
Definition qcompare.h:63
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLenum type
GLsizei GLsizei GLchar * source
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SLOTS
#define Q_SIGNALS
#define explicit
Definition moc.h:23