KWin
Loading...
Searching...
No Matches
server_decoration_palette.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2017 David Edmundson <kde@davidedmundson.co.uk>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6#pragma once
7
8#include "kwin_export.h"
9
10#include <QObject>
11#include <memory>
12
13struct wl_resource;
14
15namespace KWin
16{
17class Display;
18class SurfaceInterface;
19class ServerSideDecorationPaletteInterface;
20class ServerSideDecorationPaletteManagerInterfacePrivate;
21class ServerSideDecorationPaletteInterfacePrivate;
22
29class KWIN_EXPORT ServerSideDecorationPaletteManagerInterface : public QObject
30{
31 Q_OBJECT
32
33public:
34 explicit ServerSideDecorationPaletteManagerInterface(Display *display, QObject *parent = nullptr);
41
42Q_SIGNALS:
47
48private:
49 std::unique_ptr<ServerSideDecorationPaletteManagerInterfacePrivate> d;
50};
51
56class KWIN_EXPORT ServerSideDecorationPaletteInterface : public QObject
57{
58 Q_OBJECT
59public:
61
65 QString palette() const;
66
70 SurfaceInterface *surface() const;
71
72Q_SIGNALS:
76 void paletteChanged(const QString &palette);
77
78private:
79 explicit ServerSideDecorationPaletteInterface(SurfaceInterface *surface, wl_resource *resource);
81
82 std::unique_ptr<ServerSideDecorationPaletteInterfacePrivate> d;
83};
84
85}
Class holding the Wayland server display loop.
Definition display.h:34
void paletteChanged(const QString &palette)
void paletteCreated(KWin::ServerSideDecorationPaletteInterface *)
Resource representing a wl_surface.
Definition surface.h:80
struct _XDisplay Display