KWayland

xdgforeign_interface.h
1 /*
2  SPDX-FileCopyrightText: 2017 Marco Martin <[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_XDGFOREIGN_INTERFACE_H
7 #define KWAYLAND_SERVER_XDGFOREIGN_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 XdgExporterUnstableV2Interface;
22 class XdgImporterUnstableV2Interface;
23 
34 class KWAYLANDSERVER_EXPORT XdgForeignInterface : public QObject
35 {
36  Q_OBJECT
37 public:
38  XdgForeignInterface(Display *display, QObject *parent = nullptr);
40 
45  void create();
46 
50  bool isValid();
51 
58  SurfaceInterface *transientFor(SurfaceInterface *surface);
59 
60 Q_SIGNALS:
70  void transientChanged(KWayland::Server::SurfaceInterface *child, KWayland::Server::SurfaceInterface *parent);
71 
72 private:
73  friend class Display;
74  friend class XdgExporterUnstableV2Interface;
75  friend class XdgImporterUnstableV2Interface;
76  class Private;
77  Private *d;
78 };
79 
80 }
81 }
82 
83 #endif
Resource representing a wl_surface.
Class holding the Wayland server display loop.
Definition: display.h:89
This class encapsulates the server side logic of the XdgForeign protocol.
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.