Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QWAYLANDQUICKSHELLSURFACEITEM_H
6
#
define
QWAYLANDQUICKSHELLSURFACEITEM_H
7
8
#
include
<
QtWaylandCompositor
/
QWaylandCompositorExtension
>
9
#
include
<
QtWaylandCompositor
/
QWaylandQuickItem
>
10
11
QT_REQUIRE_CONFIG
(
wayland_compositor_quick
);
12
13
QT_BEGIN_NAMESPACE
14
15
class
QWaylandQuickShellSurfaceItemPrivate;
16
class
QWaylandShellSurface;
17
18
class
Q_WAYLANDCOMPOSITOR_EXPORT
QWaylandQuickShellSurfaceItem
:
public
QWaylandQuickItem
19
{
20
Q_OBJECT
21
Q_DECLARE_PRIVATE(QWaylandQuickShellSurfaceItem)
22
Q_PROPERTY(QWaylandShellSurface *shellSurface READ shellSurface WRITE setShellSurface NOTIFY shellSurfaceChanged)
23
Q_PROPERTY(QQuickItem *moveItem READ moveItem WRITE setMoveItem NOTIFY moveItemChanged)
24
Q_PROPERTY(
bool
autoCreatePopupItems READ autoCreatePopupItems WRITE setAutoCreatePopupItems NOTIFY autoCreatePopupItemsChanged)
25
Q_PROPERTY(
bool
staysOnTop READ staysOnTop WRITE setStaysOnTop NOTIFY staysOnTopChanged)
26
Q_PROPERTY(
bool
staysOnBottom READ staysOnBottom WRITE setStaysOnBottom NOTIFY staysOnBottomChanged)
27
Q_MOC_INCLUDE(
"qwaylandshellsurface.h"
)
28
QML_NAMED_ELEMENT(ShellSurfaceItem)
29
QML_ADDED_IN_VERSION(1, 0)
30
public
:
31
QWaylandQuickShellSurfaceItem(QQuickItem *parent =
nullptr
);
32
~QWaylandQuickShellSurfaceItem() override;
33
34
QWaylandShellSurface *shellSurface()
const
;
35
void
setShellSurface(QWaylandShellSurface *shellSurface);
36
37
QQuickItem *moveItem()
const
;
38
void
setMoveItem(QQuickItem *moveItem);
39
40
bool
autoCreatePopupItems();
41
void
setAutoCreatePopupItems(
bool
enabled);
42
43
bool
staysOnTop()
const
;
44
void
setStaysOnTop(
bool
on);
45
bool
staysOnBottom()
const
;
46
void
setStaysOnBottom(
bool
on);
47
48
Q_SIGNALS:
49
void
shellSurfaceChanged();
50
void
moveItemChanged();
51
void
autoCreatePopupItemsChanged();
52
void
staysOnTopChanged();
53
void
staysOnBottomChanged();
54
55
protected
:
56
QWaylandQuickShellSurfaceItem(QWaylandQuickShellSurfaceItemPrivate &dd, QQuickItem *parent);
57
};
58
59
QT_END_NAMESPACE
60
61
#
endif
// QWAYLANDQUICKSHELLSURFACEITEM_H
QWaylandQuickShellSurfaceItem
\qmltype ShellSurfaceItem \nativetype QWaylandQuickShellSurfaceItem \inherits WaylandQuickItem \inqml...
Definition
qwaylandquickshellsurfaceitem.h:19
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(wayland_compositor_quick)
onBottom
static bool onBottom(QWaylandQuickShellSurfaceItem *surf)
Definition
qwaylandquickshellsurfaceitem.cpp:331
findSurfaceItemFromMoveItem
static QWaylandQuickShellSurfaceItem * findSurfaceItemFromMoveItem(QQuickItem *moveItem)
Definition
qwaylandquickshellsurfaceitem.cpp:311
onTop
static bool onTop(QWaylandQuickShellSurfaceItem *surf)
Definition
qwaylandquickshellsurfaceitem.cpp:326
qtwayland
src
compositor
extensions
qwaylandquickshellsurfaceitem.h
Generated on
for Qt by
1.18.0