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
qopenxrvirtualmouse_p.h
Go to the documentation of this file.
1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QOPENXRVIRTUALMOUSE_H
5#define QOPENXRVIRTUALMOUSE_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 QOpenXRView;
25class QQuick3DNode;
26
28{
36
37 QML_NAMED_ELEMENT(XrVirtualMouse)
38
39public:
41
42 bool rightMouseButton() const;
43 bool leftMouseButton() const;
44 bool middleMouseButton() const;
45
46 QQuick3DNode *source() const;
47 QOpenXRView* view() const;
48
49 bool enabled() const;
50
51public Q_SLOTS:
57 void setEnabled(bool enabled);
58
60 void moveEvent();
61
69
71 void generateEvent(QEvent::Type type, Qt::MouseButton button = Qt::NoButton);
72
73 bool m_rightMouseButton = false;
74 bool m_leftMouseButton = false;
75 bool m_middleMouseButton = false;
76 QQuick3DNode* m_source = nullptr;
77 QOpenXRView* m_view = nullptr;
78 bool m_enabled = true;
79};
80
82
83#endif // QOPENXRVIRTUALMOUSE_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 setMiddleMouseButton(bool middleMouseButton)
void setEnabled(bool enabled)
void setLeftMouseButton(bool leftMouseButton)
void rightMouseButtonChanged(bool rightMouseButton)
void sourceChanged(QQuick3DNode *source)
void setRightMouseButton(bool rightMouseButton)
void middleMouseButtonChanged(bool middleMouseButton)
void viewChanged(QOpenXRView *view)
void setSource(QQuick3DNode *source)
void leftMouseButtonChanged(bool leftMouseButton)
void enabledChanged(bool enabled)
void setView(QOpenXRView *view)
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 Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SLOTS
#define Q_SIGNALS
#define explicit
Definition moc.h:23