KWayland

contrast_interface.h
1 /*
2  SPDX-FileCopyrightText: 2015 Martin Gräßlin <[email protected]>
3  SPDX-FileCopyrightText: 2015 Marco Martin <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6 */
7 #ifndef KWAYLAND_SERVER_CONTRAST_INTERFACE_H
8 #define KWAYLAND_SERVER_CONTRAST_INTERFACE_H
9 
10 #include "global.h"
11 #include "resource.h"
12 
13 #include <QObject>
14 
15 #include <KWayland/Server/kwaylandserver_export.h>
16 
17 namespace KWayland
18 {
19 namespace Server
20 {
21 
22 class Display;
23 
33 class KWAYLANDSERVER_EXPORT ContrastManagerInterface : public Global
34 {
35  Q_OBJECT
36 public:
37  virtual ~ContrastManagerInterface();
38 
39 private:
40  explicit ContrastManagerInterface(Display *display, QObject *parent = nullptr);
41  friend class Display;
42  class Private;
43 };
44 
58 class KWAYLANDSERVER_EXPORT ContrastInterface : public Resource
59 {
60  Q_OBJECT
61 public:
62  virtual ~ContrastInterface();
63 
64  QRegion region() const;
65  qreal contrast() const;
66  qreal intensity() const;
67  qreal saturation() const;
68 
69 private:
70  explicit ContrastInterface(ContrastManagerInterface *parent, wl_resource *parentResource);
71  friend class ContrastManagerInterface;
72 
73  class Private;
74  Private *d_func() const;
75 };
76 
77 }
78 }
79 
80 #endif
Class holding the Wayland server display loop.
Definition: display.h:89
Represents the Global for org_kde_kwin_contrast_manager interface.
Base class for all Globals.
Definition: global.h:46
Represents a bound Resource.
Definition: resource.h:32
Represents the Resource for the org_kde_kwin_contrast interface.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun May 24 2020 23:07:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.