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
qwaylandquickshellsurfaceitem.h
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QWAYLANDQUICKSHELLSURFACEITEM_H
5#define QWAYLANDQUICKSHELLSURFACEITEM_H
6
7#include <QtWaylandCompositor/QWaylandCompositorExtension>
8#include <QtWaylandCompositor/QWaylandQuickItem>
9
10QT_REQUIRE_CONFIG(wayland_compositor_quick);
11
13
16
17class Q_WAYLANDCOMPOSITOR_EXPORT QWaylandQuickShellSurfaceItem : public QWaylandQuickItem
18{
20 Q_DECLARE_PRIVATE(QWaylandQuickShellSurfaceItem)
21 Q_PROPERTY(QWaylandShellSurface *shellSurface READ shellSurface WRITE setShellSurface NOTIFY shellSurfaceChanged)
22 Q_PROPERTY(QQuickItem *moveItem READ moveItem WRITE setMoveItem NOTIFY moveItemChanged)
23 Q_PROPERTY(bool autoCreatePopupItems READ autoCreatePopupItems WRITE setAutoCreatePopupItems NOTIFY autoCreatePopupItemsChanged)
24 Q_PROPERTY(bool staysOnTop READ staysOnTop WRITE setStaysOnTop NOTIFY staysOnTopChanged)
25 Q_PROPERTY(bool staysOnBottom READ staysOnBottom WRITE setStaysOnBottom NOTIFY staysOnBottomChanged)
26 Q_MOC_INCLUDE("qwaylandshellsurface.h")
27 QML_NAMED_ELEMENT(ShellSurfaceItem)
29public:
32
33 QWaylandShellSurface *shellSurface() const;
34 void setShellSurface(QWaylandShellSurface *shellSurface);
35
36 QQuickItem *moveItem() const;
37 void setMoveItem(QQuickItem *moveItem);
38
39 bool autoCreatePopupItems();
40 void setAutoCreatePopupItems(bool enabled);
41
42 bool staysOnTop() const;
43 void setStaysOnTop(bool on);
44 bool staysOnBottom() const;
45 void setStaysOnBottom(bool on);
46
48 void shellSurfaceChanged();
49 void moveItemChanged();
50 void autoCreatePopupItemsChanged();
51 void staysOnTopChanged();
52 void staysOnBottomChanged();
53
54protected:
56};
57
59
60#endif // QWAYLANDQUICKSHELLSURFACEITEM_H
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
\qmltype WaylandQuickItem \instantiates QWaylandQuickItem \inqmlmodule QtWayland.Compositor
\qmltype ShellSurfaceItem \instantiates QWaylandQuickShellSurfaceItem \inherits WaylandQuickItem \inq...
\qmltype ShellSurface \instantiates QWaylandShellSurface \inqmlmodule QtWayland.Compositor
Combined button and popup list for selecting options.
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLfloat GLfloat GLfloat GLfloat h
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define QT_REQUIRE_CONFIG(feature)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_MOC_INCLUDE(...)
#define Q_SIGNALS