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
qwaylandsubsurface_p.h
Go to the documentation of this file.
1
// Copyright (C) 2018 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 QWAYLANDSUBSURFACE_H
5
#define QWAYLANDSUBSURFACE_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/private/qglobal_p.h>
19
#include <QtCore/qmutex.h>
20
21
#include <QtWaylandClient/qtwaylandclientglobal.h>
22
#include <QtWaylandClient/private/qwayland-wayland.h>
23
24
QT_BEGIN_NAMESPACE
25
26
namespace
QtWaylandClient
{
27
28
class
QWaylandDisplay;
29
class
QWaylandWindow;
30
31
class
Q_WAYLANDCLIENT_EXPORT
QWaylandSubSurface
:
public
QtWayland::wl_subsurface
32
{
33
public
:
34
QWaylandSubSurface
(
QWaylandWindow
*
window
,
QWaylandWindow
*parent, ::wl_subsurface *subsurface);
35
~QWaylandSubSurface
()
override
;
36
37
QWaylandWindow
*
window
()
const
{
return
m_window; }
38
QWaylandWindow
*
parent
()
const
{
return
m_parent; }
39
40
void
setSync();
41
void
setDeSync();
42
bool
isSync
()
const
{
return
m_synchronized; }
43
QMutex
*
syncMutex
() {
return
&m_syncLock; }
44
45
private
:
46
47
// Intentionally hide public methods from ::wl_subsurface
48
// to keep track of the sync state
49
void
set_sync();
50
void
set_desync();
51
QWaylandWindow
*m_window =
nullptr
;
52
QWaylandWindow
*m_parent =
nullptr
;
53
bool
m_synchronized =
false
;
54
QMutex
m_syncLock;
55
56
};
57
58
QT_END_NAMESPACE
59
60
}
61
62
#endif
// QWAYLANDSUBSURFACE_H
QMutex
\inmodule QtCore
Definition
qmutex.h:281
QtWaylandClient::QWaylandSubSurface
Definition
qwaylandsubsurface_p.h:32
QtWaylandClient::QWaylandSubSurface::syncMutex
QMutex * syncMutex()
Definition
qwaylandsubsurface_p.h:43
QtWaylandClient::QWaylandSubSurface::parent
QWaylandWindow * parent() const
Definition
qwaylandsubsurface_p.h:38
QtWaylandClient::QWaylandSubSurface::window
QWaylandWindow * window() const
Definition
qwaylandsubsurface_p.h:37
QtWaylandClient::QWaylandSubSurface::isSync
bool isSync() const
Definition
qwaylandsubsurface_p.h:42
QtWaylandClient::QWaylandWindow
Definition
qwaylandwindow_p.h:66
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
QtWaylandClient
Definition
qwaylandclientextension.h:15
window
aWidget window() -> setWindowTitle("New Window Title")
[2]
qtwayland
src
client
qwaylandsubsurface_p.h
Generated by
1.10.0