KWin
Loading...
Searching...
No Matches
src
wayland
xdgforeign_v2.h
Go to the documentation of this file.
1
/*
2
SPDX-FileCopyrightText: 2017 Marco Martin <notmart@gmail.com>
3
SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
4
5
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6
*/
7
#pragma once
8
9
#include "kwin_export.h"
10
11
#include <QObject>
12
13
namespace
KWin
14
{
15
class
Display
;
16
class
SurfaceInterface;
17
class
XdgForeignV2InterfacePrivate;
18
19
class
KWIN_EXPORT
XdgExportedSurface
:
public
QObject
20
{
21
Q_OBJECT
22
23
public
:
24
XdgExportedSurface
(
SurfaceInterface
*surface);
25
26
QString handle()
const
;
27
SurfaceInterface
*surface()
const
;
28
29
private
:
30
void
handleSurfaceDestroyed();
31
32
const
QString m_handle;
33
SurfaceInterface
*m_surface;
34
};
35
44
class
KWIN_EXPORT
XdgForeignV2Interface
:
public
QObject
45
{
46
Q_OBJECT
47
public
:
48
XdgForeignV2Interface
(
Display
*display, QObject *parent =
nullptr
);
49
~XdgForeignV2Interface
()
override
;
50
57
SurfaceInterface
*transientFor(
SurfaceInterface
*surface);
58
64
XdgExportedSurface
*exportSurface(
SurfaceInterface
*surface);
65
66
Q_SIGNALS:
76
void
transientChanged
(
KWin::SurfaceInterface
*child,
KWin::SurfaceInterface
*parent);
77
78
private
:
79
friend
class
XdgExporterV2Interface
;
80
friend
class
XdgImporterV2Interface
;
81
std::unique_ptr<XdgForeignV2InterfacePrivate> d;
82
};
83
84
}
KWin::Display
Class holding the Wayland server display loop.
Definition
display.h:34
KWin::SurfaceInterface
Resource representing a wl_surface.
Definition
surface.h:80
KWin::XdgExportedSurface
Definition
xdgforeign_v2.h:20
KWin::XdgExporterV2Interface
Definition
xdgforeign_v2_p.h:35
KWin::XdgForeignV2Interface
Definition
xdgforeign_v2.h:45
KWin::XdgForeignV2Interface::transientChanged
void transientChanged(KWin::SurfaceInterface *child, KWin::SurfaceInterface *parent)
KWin::XdgImporterV2Interface
Definition
xdgforeign_v2_p.h:55
KWin
Definition
activation_test.cpp:20
Display
struct _XDisplay Display
Definition
x11_standalone_egl_backend.h:18
Generated on Sat Feb 17 2024 01:42:10 for KWin by
1.10.0