KWayland

subcompositor.h
1 /*
2  SPDX-FileCopyrightText: 2014 Martin Gräßlin <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 #ifndef WAYLAND_SUBCOMPOSITOR_H
7 #define WAYLAND_SUBCOMPOSITOR_H
8 
9 #include <QObject>
10 #include <QPointer>
11 
12 #include <KWayland/Client/kwaylandclient_export.h>
13 
14 struct wl_subcompositor;
15 
16 namespace KWayland
17 {
18 namespace Client
19 {
20 
21 class EventQueue;
22 class SubSurface;
23 class Surface;
24 
35 class KWAYLANDCLIENT_EXPORT SubCompositor : public QObject
36 {
37  Q_OBJECT
38 public:
39  explicit SubCompositor(QObject *parent = nullptr);
40  virtual ~SubCompositor();
41 
45  bool isValid() const;
51  void setup(wl_subcompositor *subcompositor);
57  void release();
69  void destroy();
70 
74  void setEventQueue(EventQueue *queue);
78  EventQueue *eventQueue();
79 
85  SubSurface *createSubSurface(QPointer<Surface> surface, QPointer<Surface> parentSurface, QObject *parent = nullptr);
86 
87  operator wl_subcompositor*();
88  operator wl_subcompositor*() const;
89 
90 Q_SIGNALS:
99  void removed();
100 
101 private:
102  class Private;
104 };
105 
106 }
107 }
108 
109 #endif
Wrapper class for wl_event_queue interface.
Definition: event_queue.h:55
Wrapper for the wl_subsurface interface.
Definition: subsurface.h:41
Wrapper for the wl_subcompositor interface.
Definition: subcompositor.h:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Aug 7 2020 22:48:20 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.