KWin
Loading...
Searching...
No Matches
compositor.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org>
3 SPDX-FileCopyrightText: 2020 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 "surface.h"
12
13#include <QObject>
14
15namespace KWin
16{
17class CompositorInterfacePrivate;
18class Display;
19
25class KWIN_EXPORT CompositorInterface : public QObject
26{
27 Q_OBJECT
28
29public:
30 explicit CompositorInterface(Display *display, QObject *parent = nullptr);
31 ~CompositorInterface() override;
32
36 Display *display() const;
37
38Q_SIGNALS:
43
44private:
45 std::unique_ptr<CompositorInterfacePrivate> d;
46};
47
48} // namespace KWin
void surfaceCreated(KWin::SurfaceInterface *surface)
Class holding the Wayland server display loop.
Definition display.h:34
Resource representing a wl_surface.
Definition surface.h:80
struct _XDisplay Display