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
qwaylandquickoutput.h
Go to the documentation of this file.
1// Copyright (C) 2017 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
2// Copyright (C) 2017 The Qt Company Ltd.
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
4
5#ifndef QWAYLANDQUICKOUTPUT_H
6#define QWAYLANDQUICKOUTPUT_H
7
8#include <QtQuick/QQuickWindow>
9#include <QtWaylandCompositor/qwaylandoutput.h>
10#include <QtWaylandCompositor/qwaylandquickchildren.h>
11
12QT_REQUIRE_CONFIG(wayland_compositor_quick);
13
15
17class QQuickWindow;
18
19class Q_WAYLANDCOMPOSITOR_EXPORT QWaylandQuickOutput : public QWaylandOutput, public QQmlParserStatus
20{
24 Q_PROPERTY(bool automaticFrameCallback READ automaticFrameCallback WRITE setAutomaticFrameCallback NOTIFY automaticFrameCallbackChanged)
25 QML_NAMED_ELEMENT(WaylandOutput)
27public:
30
31 void update() override;
32
33 bool automaticFrameCallback() const;
34 void setAutomaticFrameCallback(bool automatic);
35
36 QQuickItem *pickClickableItem(const QPointF &position);
37
38public Q_SLOTS:
39 void updateStarted();
40
42 void automaticFrameCallbackChanged();
43
44protected:
45 void initialize() override;
46 void classBegin() override;
47 void componentComplete() override;
48
50 void doFrameCallbacks();
51
52 bool m_updateScheduled = false;
53 bool m_automaticFrameCallback = true;
54};
55
57
58#endif
\inmodule QtCore\reentrant
Definition qpoint.h:217
The QQmlParserStatus class provides updates on the QML parser state.
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
\qmltype Window \instantiates QQuickWindow \inqmlmodule QtQuick
\qmltype WaylandCompositor \instantiates QWaylandCompositor \inqmlmodule QtWayland....
\qmltype WaylandOutput \instantiates QWaylandOutput \inqmlmodule QtWayland.Compositor
\inmodule QtGui
Definition qwindow.h:63
Combined button and popup list for selecting options.
static bool initialize()
Definition qctf.cpp:94
static QOpenGLCompositor * compositor
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
#define QT_REQUIRE_CONFIG(feature)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_INTERFACES(x)
#define Q_SLOTS
#define Q_SIGNALS
#define Q_WAYLAND_COMPOSITOR_DECLARE_QUICK_CHILDREN(className)
aWidget window() -> setWindowTitle("New Window Title")
[2]