KWayland

outputchangeset.h
1 /*
2  SPDX-FileCopyrightText: 2015 Sebastian Kügler <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 
7 #ifndef WAYLAND_SERVER_OUTPUT_CHANGESET_H
8 #define WAYLAND_SERVER_OUTPUT_CHANGESET_H
9 
10 #include <QObject>
11 
12 #include "outputdevice_interface.h"
13 #include <KWayland/Server/kwaylandserver_export.h>
14 
15 namespace KWayland
16 {
17 namespace Server
18 {
19 
30 class KWAYLANDSERVER_EXPORT OutputChangeSet : public QObject
31 {
32  Q_OBJECT
33 public:
34  virtual ~OutputChangeSet();
35 
39  bool enabledChanged() const;
45  bool transformChanged() const;
49  bool modeChanged() const;
53  bool positionChanged() const;
57  bool scaleChanged() const;
61  bool colorCurvesChanged() const;
62 
64  OutputDeviceInterface::Enablement enabled() const;
66  int mode() const;
68  OutputDeviceInterface::Transform transform() const;
70  QPoint position() const;
71 #if KWAYLANDSERVER_ENABLE_DEPRECATED_SINCE(5, 50)
72 
75  KWAYLANDSERVER_DEPRECATED_VERSION(5, 50, "Use OutputChangeSet::scaleF()")
76  int scale() const;
77 #endif
78 
81  qreal scaleF() const;
85  OutputDeviceInterface::ColorCurves colorCurves() const;
86 
87 private:
88  friend class OutputConfigurationInterface;
89  explicit OutputChangeSet(OutputDeviceInterface *outputdevice, QObject *parent = nullptr);
90 
91 
92  class Private;
94  Private *d_func() const;
95 };
96 
97 }
98 }
99 
100 #endif
Represents an output device, the difference to Output is that this output can be disabled, so not currently used to display content.
Holds a set of changes to an OutputInterface or OutputDeviceInterface.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Aug 7 2020 22:48:18 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.