KWayland

slide_interface.h
1 /*
2  SPDX-FileCopyrightText: 2015 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_SLIDE_INTERFACE_H
7 #define KWAYLAND_SERVER_SLIDE_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 
24 class KWAYLANDSERVER_EXPORT SlideManagerInterface : public Global
25 {
26  Q_OBJECT
27 public:
28  virtual ~SlideManagerInterface();
29 
30 private:
31  explicit SlideManagerInterface(Display *display, QObject *parent = nullptr);
32  friend class Display;
33  class Private;
34 };
35 
39 class KWAYLANDSERVER_EXPORT SlideInterface : public Resource
40 {
41  Q_OBJECT
42 public:
43  enum Location {
44  Left = 0,
45  Top,
47  Bottom
48  };
49 
50  virtual ~SlideInterface();
51 
55  Location location() const;
56 
61  qint32 offset() const;
62 
63 private:
64  explicit SlideInterface(SlideManagerInterface *parent, wl_resource *parentResource);
65  friend class SlideManagerInterface;
66 
67  class Private;
68  Private *d_func() const;
69 };
70 
71 
72 }
73 }
74 
75 #endif
Left
Class holding the Wayland server display loop.
Definition: display.h:89
Base class for all Globals.
Definition: global.h:46
Slide from the top edge of the screen.
Represents a bound Resource.
Definition: resource.h:32
Slide from the bottom edge of the screen.
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.