KWaylandServer

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 #pragma once
7 
8 #include <QObject>
9 
10 #include <KWaylandServer/kwaylandserver_export.h>
11 
12 struct wl_resource;
13 
14 namespace KWaylandServer
15 {
16 class Display;
17 class SlideManagerInterfacePrivate;
18 class SlideInterfacePrivate;
19 
20 class KWAYLANDSERVER_EXPORT SlideManagerInterface : public QObject
21 {
22  Q_OBJECT
23 
24 public:
25  explicit SlideManagerInterface(Display *display, QObject *parent = nullptr);
26  ~SlideManagerInterface() override;
27 
28  void remove();
29 
30 private:
32 };
33 
34 class KWAYLANDSERVER_EXPORT SlideInterface : public QObject
35 {
36  Q_OBJECT
37 public:
38  enum Location {
39  Left = 0, /**< Slide from the left edge of the screen */
40  Top = 1, /**< Slide from the top edge of the screen */
41  Right = 2, /**< Slide from the bottom edge of the screen */
42  Bottom = 3, /**< Slide from the bottom edge of the screen */
43  };
44 
45  ~SlideInterface() override;
46 
47  /**
48  * @returns the location the window will be slided from
49  */
50  Location location() const;
51 
52  /**
53  * @returns the offset from the screen edge the window will
54  * be slided from
55  */
56  qint32 offset() const;
57 
58 private:
59  explicit SlideInterface(SlideManagerInterface *manager, wl_resource *resource);
60  friend class SlideManagerInterfacePrivate;
61 
63 };
64 }
Left
QVariant location(const QVariant &res)
Right
Top
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Oct 23 2021 23:08:28 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.