KWaylandServer

outputmanagement_v2_interface.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 #pragma once
7 
8 #include <QObject>
9 
10 #include <KWaylandServer/kwaylandserver_export.h>
11 
12 namespace KWaylandServer
13 {
14 
15 class OutputManagementV2InterfacePrivate;
16 class OutputConfigurationV2Interface;
17 /**
18  * @class OutputManagementInterface
19  *
20  * This class is used to change the configuration of the Wayland server's outputs.
21  * The client requests an OutputConfiguration, changes its OutputDevices and then
22  * calls OutputConfiguration::apply, which makes this class emit a signal, carrying
23  * the new configuration.
24  * The server is then expected to make the requested changes by applying the settings
25  * of the OutputDevices to the Outputs.
26  *
27  * @see OutputConfiguration
28  * @see OutputConfigurationInterface
29  */
30 class KWAYLANDSERVER_EXPORT OutputManagementV2Interface : public QObject
31 {
32  Q_OBJECT
33 
34 public:
35  explicit OutputManagementV2Interface(Display *display, QObject *parent = nullptr);
36  ~OutputManagementV2Interface() override;
37 
38 Q_SIGNALS:
39  /**
40  * Emitted after the client has requested an OutputConfiguration to be applied.
41  * through OutputConfiguration::apply. The compositor can use this object to get
42  * notified when the new configuration is set up, and it should be applied to the
43  * Wayland server's OutputInterfaces.
44  *
45  * @param config The OutputConfigurationInterface corresponding to the client that
46  * called apply().
47  * @see OutputConfiguration::apply
48  * @see OutputConfigurationInterface
49  * @see OutputDeviceInterface
50  * @see OutputInterface
51  */
52  void configurationChangeRequested(KWaylandServer::OutputConfigurationV2Interface *configurationInterface);
53 
54 private:
56 };
57 
58 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Oct 23 2021 23:08:27 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.