KWin
Loading...
Searching...
No Matches
slide.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2015 Marco Martin <notmart@gmail.com>
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 "kwin_export.h"
9
10#include <QObject>
11#include <memory>
12
13struct wl_resource;
14
15namespace KWin
16{
17class Display;
18class SlideManagerInterfacePrivate;
19class SlideInterfacePrivate;
20
21class KWIN_EXPORT SlideManagerInterface : public QObject
22{
23 Q_OBJECT
24
25public:
26 explicit SlideManagerInterface(Display *display, QObject *parent = nullptr);
27 ~SlideManagerInterface() override;
28
29 void remove();
30
31private:
32 std::unique_ptr<SlideManagerInterfacePrivate> d;
33};
34
35class KWIN_EXPORT SlideInterface : public QObject
36{
37 Q_OBJECT
38public:
39 enum Location {
40 Left = 0,
41 Top = 1,
42 Right = 2,
43 Bottom = 3,
44 };
45
46 ~SlideInterface() override;
47
51 Location location() const;
52
57 qint32 offset() const;
58
59private:
60 explicit SlideInterface(wl_resource *resource);
62
63 std::unique_ptr<SlideInterfacePrivate> d;
64};
65}
Class holding the Wayland server display loop.
Definition display.h:34
~SlideInterface() override
struct _XDisplay Display