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
qwaylandqtsurface_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
// Qt-Security score:critical reason:network-protocol
4
5
#
ifndef
QWAYLANDQTSURFACE_H
6
#
define
QWAYLANDQTSURFACE_H
7
8
#
include
<
QtCore
/
qpoint
.
h
>
9
#
include
<
QtWaylandClient
/
private
/
qwaylandshellsurface_p
.
h
>
10
#
include
"qwayland-qt-shell-unstable-v1.h"
11
12
QT_BEGIN_NAMESPACE
13
14
namespace
QtWaylandClient
{
15
16
class
QWaylandWindow;
17
class
QWaylandInputDevice;
18
19
class
Q_WAYLANDCLIENT_EXPORT
QWaylandQtSurface
:
public
QWaylandShellSurface
20
,
public
QtWayland
::
zqt_shell_surface_v1
21
{
22
public
:
23
QWaylandQtSurface
(
struct
::
zqt_shell_surface_v1
*
shell_surface
,
QWaylandWindow
*
window
);
24
~
QWaylandQtSurface
()
override
;
25
26
void
applyConfigure
()
override
;
27
void
setWindowPosition
(
const
QPoint
&
position
)
override
;
28
void
setWindowSize
(
const
QSize
&
size
)
override
;
29
30
void
setWindowFlags
(
Qt
::
WindowFlags
flags
)
override
;
31
void
requestWindowStates
(
Qt
::
WindowStates
states
)
override
;
32
void
setTitle
(
const
QString
&
title
)
override
;
33
34
bool
resize
(
QWaylandInputDevice
*,
Qt
::
Edges
)
override
;
35
bool
move
(
QWaylandInputDevice
*)
override
;
36
bool
requestActivate
()
override
;
37
38
void
propagateSizeHints
()
override
;
39
40
QMargins
serverSideFrameMargins
()
const
override
;
41
42
void
raise
()
override
;
43
void
lower
()
override
;
44
45
std
::
any
surfaceRole
()
const
override
{
return
object
(); };
46
47
private
:
48
void
resetConfiguration
();
49
void
sendSizeHints
();
50
void
zqt_shell_surface_v1_close
()
override
;
51
void
zqt_shell_surface_v1_resize
(
uint32_t
serial
,
int32_t
width
,
int32_t
height
)
override
;
52
void
zqt_shell_surface_v1_set_position
(
uint32_t
serial
,
int32_t
x
,
int32_t
y
)
override
;
53
void
zqt_shell_surface_v1_configure
(
uint32_t
serial
)
override
;
54
void
zqt_shell_surface_v1_set_window_state
(
uint32_t
serial
,
uint32_t
state
)
override
;
55
void
zqt_shell_surface_v1_set_frame_margins
(
uint32_t
left
,
uint32_t
right
,
56
uint32_t
top
,
uint32_t
bottom
)
override
;
57
void
zqt_shell_surface_v1_set_capabilities
(
uint32_t
capabilities
)
override
;
58
59
QSize
m_pendingSize
;
60
QPoint
m_pendingPosition
= { -1, -1 };
61
bool
m_pendingPositionValid
=
false
;
62
Qt
::
WindowStates
m_pendingStates
=
Qt
::
WindowNoState
;
63
Qt
::
WindowStates
m_currentStates
=
Qt
::
WindowNoState
;
64
QMargins
m_frameMargins
;
65
uint32_t
m_currentConfigureSerial
=
UINT32_MAX
;
66
uint32_t
m_capabilities
= 0;
67
};
68
69
}
70
71
QT_END_NAMESPACE
72
73
#
endif
// QWAYLANDQTSURFACE_H
QtWaylandClient::QWaylandQtSurface
Definition
qwaylandqtsurface_p.h:21
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QtWaylandClient
Definition
qwaylandclientextension.h:16
qtwayland
src
plugins
shellintegration
qt-shell
qwaylandqtsurface_p.h
Generated on
for Qt by
1.16.1