KWin
Loading...
Searching...
No Matches
src
wayland
output.h
Go to the documentation of this file.
1
/*
2
SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org>
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 "
core/output.h
"
10
#include "kwin_export.h"
11
12
#include <QObject>
13
#include <QPoint>
14
#include <QSize>
15
16
struct
wl_resource;
17
struct
wl_client;
18
19
namespace
KWin
20
{
21
class
Output;
22
}
23
24
namespace
KWin
25
{
26
class
ClientConnection;
27
class
Display
;
28
class
OutputInterfacePrivate;
29
34
class
KWIN_EXPORT
OutputInterface
:
public
QObject
35
{
36
Q_OBJECT
37
38
public
:
39
explicit
OutputInterface
(
Display
*display,
Output
*handle, QObject *parent =
nullptr
);
40
~OutputInterface
()
override
;
41
42
bool
isRemoved()
const
;
43
void
remove();
44
45
Output
*handle()
const
;
46
50
QList<wl_resource *> clientResources(wl_client *client)
const
;
51
55
void
scheduleDone();
56
60
void
done(wl_client *client);
61
62
static
OutputInterface
*get(wl_resource *native);
63
64
Display
*display()
const
;
65
66
Q_SIGNALS:
67
void
removed
();
68
73
void
bound
(
ClientConnection
*client, wl_resource *boundResource);
74
75
private
:
76
std::unique_ptr<OutputInterfacePrivate> d;
77
};
78
79
}
// namespace KWin
KWin::ClientConnection
Convenient Class which represents a wl_client.
Definition
clientconnection.h:32
KWin::Display
Class holding the Wayland server display loop.
Definition
display.h:34
KWin::Output
Definition
output.h:132
KWin::OutputInterface
Definition
output.h:35
KWin::OutputInterface::bound
void bound(ClientConnection *client, wl_resource *boundResource)
KWin::OutputInterface::removed
void removed()
output.h
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:09 for KWin by
1.10.0