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
qwaylandshellsurface_p.h
Go to the documentation of this file.
1
// Copyright (C) 2021 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
#
ifndef
QWAYLANDSHELLSURFACE_H
5
#
define
QWAYLANDSHELLSURFACE_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
<
QtCore
/
QSize
>
19
#
include
<
QObject
>
20
#
include
<
QPoint
>
21
#
include
<
QtWaylandClient
/
qtwaylandclientglobal
.
h
>
22
#
include
<
QtCore
/
private
/
qglobal_p
.
h
>
23
24
#
include
<
any
>
25
26
struct
wl_surface;
27
28
QT_BEGIN_NAMESPACE
29
30
class
QVariant;
31
class
QWindow;
32
class
QPlatformWindow;
33
34
namespace
QtWaylandClient
{
35
36
class
QWaylandWindow;
37
class
QWaylandInputDevice;
38
39
class
Q_WAYLANDCLIENT_EXPORT
QWaylandShellSurface
:
public
QObject
40
{
41
Q_OBJECT
42
public
:
43
explicit
QWaylandShellSurface
(
QWaylandWindow
*
window
);
44
~
QWaylandShellSurface
()
override
{}
45
virtual
bool
resize
(
QWaylandInputDevice
*,
Qt
::
Edges
) {
return
false
; }
46
virtual
bool
move
(
QWaylandInputDevice
*) {
return
false
; }
47
virtual
bool
showWindowMenu
(
QWaylandInputDevice
*
seat
) {
Q_UNUSED
(
seat
);
return
false
; }
48
virtual
void
setTitle
(
const
QString
&
/*title*/
) {}
49
virtual
void
setAppId
(
const
QString
&
/*appId*/
) {}
50
51
virtual
void
setWindowFlags
(
Qt
::
WindowFlags
flags
);
52
53
virtual
bool
isExposed
()
const
{
return
true
; }
54
virtual
bool
handleExpose
(
const
QRegion
&) {
return
false
; }
55
56
virtual
void
raise
() {}
57
virtual
void
lower
() {}
58
virtual
void
setContentOrientationMask
(
Qt
::
ScreenOrientations
orientation
) {
Q_UNUSED
(
orientation
); }
59
virtual
void
setContentGeometry
(
const
QRect
&
rect
) {
Q_UNUSED
(
rect
); }
60
61
virtual
void
sendProperty
(
const
QString
&
name
,
const
QVariant
&
value
);
62
63
virtual
void
applyConfigure
() {}
64
virtual
void
requestWindowStates
(
Qt
::
WindowStates
states
) {
Q_UNUSED
(
states
);}
65
virtual
bool
wantsDecorations
()
const
{
return
false
; }
66
virtual
QMargins
serverSideFrameMargins
()
const
{
return
QMargins
(); }
67
68
virtual
void
propagateSizeHints
() {}
69
70
virtual
void
setWindowGeometry
(
const
QRect
&
rect
);
71
virtual
void
setWindowPosition
(
const
QPoint
&
position
) {
Q_UNUSED
(
position
); }
72
virtual
void
setWindowSize
(
const
QSize
&
size
) {
Q_UNUSED
(
size
); }
73
74
virtual
bool
requestActivate
() {
return
false
; }
75
virtual
bool
requestActivateOnShow
() {
return
false
; }
76
virtual
void
setXdgActivationToken
(
const
QString
&
token
);
77
virtual
void
requestXdgActivationToken
(
quint32
serial
);
78
79
virtual
void
setAlertState
(
bool
enabled
) {
Q_UNUSED
(
enabled
); }
80
virtual
bool
isAlertState
()
const
{
return
false
; }
81
82
virtual
QString
externWindowHandle
() {
return
QString
(); }
83
84
inline
QWaylandWindow
*
window
() {
return
m_window
; }
85
QPlatformWindow
*
platformWindow
();
86
struct
wl_surface
*
wlSurface
();
87
88
virtual
std
::
any
surfaceRole
()
const
{
return
std
::
any
(); };
89
90
virtual
void
attachPopup
(
QWaylandShellSurface
*
popup
) {
Q_UNUSED
(
popup
); }
91
virtual
void
detachPopup
(
QWaylandShellSurface
*
popup
) {
Q_UNUSED
(
popup
); }
92
93
virtual
void
setIcon
(
const
QIcon
&
icon
) {
Q_UNUSED
(
icon
); }
94
95
protected
:
96
void
resizeFromApplyConfigure
(
const
QSize
&
sizeWithMargins
,
const
QPoint
&
offset
= {0, 0});
97
void
repositionFromApplyConfigure
(
const
QPoint
&
position
);
98
void
setGeometryFromApplyConfigure
(
const
QPoint
&
globalPosition
,
const
QSize
&
sizeWithMargins
);
99
void
applyConfigureWhenPossible
();
100
void
handleActivationChanged
(
bool
activated
);
101
102
static
uint32_t
getSerial
(
QWaylandInputDevice
*
inputDevice
);
103
104
private
:
105
QWaylandWindow
*
m_window
=
nullptr
;
106
friend
class
QWaylandWindow
;
107
};
108
109
}
110
111
QT_END_NAMESPACE
112
113
#
endif
// QWAYLANDSHELLSURFACE_H
QPaintEngine::QPainter
friend class QPainter
Definition
qpaintengine.h:219
QtWaylandClient::ColorManagementSurface
Definition
qwaylandcolormanagement_p.h:135
QtWaylandClient::ImageDescription
Definition
qwaylandcolormanagement_p.h:101
QtWaylandClient::QWaylandAbstractDecorationPrivate
Definition
qwaylandabstractdecoration.cpp:20
QtWaylandClient::QWaylandAbstractDecorationPrivate::m_isDirty
bool m_isDirty
Definition
qwaylandabstractdecoration.cpp:30
QtWaylandClient::QWaylandAbstractDecorationPrivate::m_wayland_window
QWaylandWindow * m_wayland_window
Definition
qwaylandabstractdecoration.cpp:28
QtWaylandClient::QWaylandAbstractDecorationPrivate::m_mouseButtons
Qt::MouseButtons m_mouseButtons
Definition
qwaylandabstractdecoration.cpp:33
QtWaylandClient::QWaylandAbstractDecorationPrivate::~QWaylandAbstractDecorationPrivate
~QWaylandAbstractDecorationPrivate() override
Definition
qwaylandabstractdecoration.cpp:41
QtWaylandClient::QWaylandAbstractDecorationPrivate::m_window
QWindow * m_window
Definition
qwaylandabstractdecoration.cpp:27
QtWaylandClient::QWaylandAbstractDecorationPrivate::m_decorationContentImage
QImage m_decorationContentImage
Definition
qwaylandabstractdecoration.cpp:31
QtWaylandClient::QWaylandAbstractDecoration
Definition
qwaylandabstractdecoration_p.h:47
QtWaylandClient::QWaylandFractionalScale
Definition
qwaylandfractionalscale_p.h:30
QtWaylandClient::QWaylandPointerEvent
Definition
qwaylandinputdevice_p.h:424
QtWaylandClient::QWaylandPointerGesturePinchEvent
Definition
qwaylandinputdevice_p.h:501
QtWaylandClient::QWaylandPointerGestureSwipeEvent
Definition
qwaylandinputdevice_p.h:476
QtWaylandClient::QWaylandShellSurface
Definition
qwaylandshellsurface_p.h:40
QtWaylandClient::QWaylandSurface
Definition
qwaylandsurface_p.h:32
QtWaylandClient::QWaylandViewport
Definition
qwaylandviewport_p.h:28
QtWaylandClient::QWaylandWindow
Definition
qwaylandwindow_p.h:68
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QtWaylandClient
Definition
qwaylandclientextension.h:15
QtWaylandClient::marginsRegion
static QRegion marginsRegion(const QSize &size, const QMargins &margins)
Definition
qwaylandabstractdecoration.cpp:72
qtwayland
src
client
qwaylandshellsurface_p.h
Generated on Wed Mar 12 2025 00:54:45 for Qt by
1.13.2