2020-03-15 15:19:28 +00:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2015 Marco Martin <notmart@gmail.com>
|
2015-09-09 11:04:11 +00:00
|
|
|
|
2020-03-15 15:19:28 +00:00
|
|
|
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
|
|
|
|
*/
|
2018-09-12 17:49:38 +00:00
|
|
|
#ifndef KWAYLAND_SERVER_SLIDE_INTERFACE_H
|
|
|
|
#define KWAYLAND_SERVER_SLIDE_INTERFACE_H
|
2015-09-09 11:04:11 +00:00
|
|
|
|
|
|
|
#include "global.h"
|
|
|
|
#include "resource.h"
|
|
|
|
|
2020-04-29 14:56:38 +00:00
|
|
|
#include <KWaylandServer/kwaylandserver_export.h>
|
2015-09-09 11:04:11 +00:00
|
|
|
|
2020-04-29 14:56:38 +00:00
|
|
|
namespace KWaylandServer
|
2015-09-09 11:04:11 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
class Display;
|
|
|
|
|
2017-05-26 01:34:17 +00:00
|
|
|
/**
|
|
|
|
* TODO
|
|
|
|
*/
|
2015-09-09 11:04:11 +00:00
|
|
|
class KWAYLANDSERVER_EXPORT SlideManagerInterface : public Global
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
virtual ~SlideManagerInterface();
|
|
|
|
|
|
|
|
private:
|
|
|
|
explicit SlideManagerInterface(Display *display, QObject *parent = nullptr);
|
|
|
|
friend class Display;
|
|
|
|
class Private;
|
|
|
|
};
|
|
|
|
|
2017-05-26 01:34:17 +00:00
|
|
|
/**
|
|
|
|
* TODO
|
|
|
|
*/
|
2015-09-09 11:04:11 +00:00
|
|
|
class KWAYLANDSERVER_EXPORT SlideInterface : public Resource
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
enum Location {
|
2017-05-26 01:10:43 +00:00
|
|
|
Left = 0, /**< Slide from the left edge of the screen */
|
|
|
|
Top, /**< Slide from the top edge of the screen */
|
|
|
|
Right, /**< Slide from the bottom edge of the screen */
|
|
|
|
Bottom /**< Slide from the bottom edge of the screen */
|
2015-09-09 11:04:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
virtual ~SlideInterface();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @returns the location the window will be slided from
|
|
|
|
*/
|
|
|
|
Location location() const;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @returns the offset from the screen edge the window will
|
|
|
|
* be slided from
|
|
|
|
*/
|
|
|
|
qint32 offset() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
explicit SlideInterface(SlideManagerInterface *parent, wl_resource *parentResource);
|
|
|
|
friend class SlideManagerInterface;
|
|
|
|
|
|
|
|
class Private;
|
|
|
|
Private *d_func() const;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|