KWayland

server_decoration_palette_interface.h
1 /*
2  SPDX-FileCopyrightText: 2017 David Edmundson <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 #ifndef KWAYLAND_SERVER_DECORATION_PALETTE_INTERFACE_H
7 #define KWAYLAND_SERVER_DECORATION_PALETTE_INTERFACE_H
8 
9 #include "global.h"
10 #include "resource.h"
11 
12 #include <KWayland/Server/kwaylandserver_export.h>
13 
14 namespace KWayland
15 {
16 namespace Server
17 {
18 
19 class Display;
20 class SurfaceInterface;
21 class ServerSideDecorationPaletteInterface;
22 
30 class KWAYLANDSERVER_EXPORT ServerSideDecorationPaletteManagerInterface : public Global
31 {
32  Q_OBJECT
33 public:
40 
41 Q_SIGNALS:
46 
47 private:
48  explicit ServerSideDecorationPaletteManagerInterface(Display *display, QObject *parent = nullptr);
49  friend class Display;
50  class Private;
51  Private *d_func() const;
52 };
53 
59 class KWAYLANDSERVER_EXPORT ServerSideDecorationPaletteInterface : public Resource
60 {
61  Q_OBJECT
62 public:
64 
68  QString palette() const;
69 
73  SurfaceInterface *surface() const;
74 
75 Q_SIGNALS:
79  void paletteChanged(const QString &palette);
80 
81 private:
84 
85  class Private;
86  Private *d_func() const;
87 };
88 
89 }
90 }
91 
92 #endif
Resource representing a wl_surface.
Class holding the Wayland server display loop.
Definition: display.h:89
Base class for all Globals.
Definition: global.h:46
Represents a bound Resource.
Definition: resource.h:32
Allows a client to specify a preferred palette to use for server-side window decorations.
Provides the palette This interface is attached to a wl_surface and informs the server of a requested...
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Aug 10 2020 22:53:36 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.