Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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// Qt-Security score:significant reason:default
5
6#ifndef QWAYLANDQUICKOUTPUT_H
7#define QWAYLANDQUICKOUTPUT_H
8
9#include <QtQuick/QQuickWindow>
10#include <QtWaylandCompositor/qwaylandoutput.h>
11#include <QtWaylandCompositor/qwaylandquickchildren.h>
12
14
15QT_BEGIN_NAMESPACE
16
17class QWaylandQuickCompositor;
18class QQuickWindow;
19
20class Q_WAYLANDCOMPOSITOR_EXPORT QWaylandQuickOutput : public QWaylandOutput, public QQmlParserStatus
21{
22 Q_INTERFACES(QQmlParserStatus)
23 Q_OBJECT
24 Q_WAYLAND_COMPOSITOR_DECLARE_QUICK_CHILDREN(QWaylandQuickOutput)
25 Q_PROPERTY(bool automaticFrameCallback READ automaticFrameCallback WRITE setAutomaticFrameCallback NOTIFY automaticFrameCallbackChanged)
26 QML_NAMED_ELEMENT(WaylandOutput)
27 QML_ADDED_IN_VERSION(1, 0)
28public:
29 QWaylandQuickOutput();
30 QWaylandQuickOutput(QWaylandCompositor *compositor, QWindow *window);
31
32 void update() override;
33
34 bool automaticFrameCallback() const;
35 void setAutomaticFrameCallback(bool automatic);
36
37 QQuickItem *pickClickableItem(const QPointF &position);
38
39public Q_SLOTS:
40 void updateStarted();
41
42Q_SIGNALS:
43 void automaticFrameCallbackChanged();
44
45protected:
46 void initialize() override;
47 void classBegin() override;
48 void componentComplete() override;
49
50private:
51 void doFrameCallbacks();
52
53 bool m_updateScheduled = false;
54 bool m_automaticFrameCallback = true;
55};
56
57QT_END_NAMESPACE
58
59#endif
QWaylandSurface * createDefaultSurface() override
QWaylandQuickCompositorPrivate(QWaylandCompositor *compositor)
Combined button and popup list for selecting options.
QT_REQUIRE_CONFIG(animation)
QT_REQUIRE_CONFIG(liburing)
QT_REQUIRE_CONFIG(wayland_compositor_quick)