2014-08-28 07:52:35 +00:00
|
|
|
/********************************************************************
|
2014-09-17 13:57:56 +00:00
|
|
|
Copyright 2014 Martin Gräßlin <mgraesslin@kde.org>
|
2014-08-28 07:52:35 +00:00
|
|
|
|
2014-09-17 13:57:56 +00:00
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Lesser General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2.1 of the License, or (at your option) version 3, or any
|
|
|
|
later version accepted by the membership of KDE e.V. (or its
|
|
|
|
successor approved by the membership of KDE e.V.), which shall
|
|
|
|
act as a proxy defined in Section 6 of version 3 of the license.
|
2014-08-28 07:52:35 +00:00
|
|
|
|
2014-09-17 13:57:56 +00:00
|
|
|
This library is distributed in the hope that it will be useful,
|
2014-08-28 07:52:35 +00:00
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2014-09-17 13:57:56 +00:00
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Lesser General Public License for more details.
|
2014-08-28 07:52:35 +00:00
|
|
|
|
2014-09-17 13:57:56 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
|
|
License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2014-08-28 07:52:35 +00:00
|
|
|
*********************************************************************/
|
2014-09-17 14:20:56 +00:00
|
|
|
#ifndef WAYLAND_SERVER_COMPOSITOR_INTERFACE_H
|
|
|
|
#define WAYLAND_SERVER_COMPOSITOR_INTERFACE_H
|
2014-08-28 07:52:35 +00:00
|
|
|
|
2014-11-13 14:07:31 +00:00
|
|
|
#include "global.h"
|
2014-10-16 11:04:51 +00:00
|
|
|
#include "region_interface.h"
|
2014-08-28 07:52:35 +00:00
|
|
|
#include "surface_interface.h"
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
2014-10-14 11:43:24 +00:00
|
|
|
#include <KWayland/Server/kwaylandserver_export.h>
|
2014-09-17 13:10:43 +00:00
|
|
|
|
2014-09-17 14:10:38 +00:00
|
|
|
namespace KWayland
|
2014-08-28 07:52:35 +00:00
|
|
|
{
|
2014-09-17 14:10:38 +00:00
|
|
|
namespace Server
|
2014-08-28 07:52:35 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
class Display;
|
|
|
|
class SurfaceInterface;
|
|
|
|
|
2015-09-09 15:31:13 +00:00
|
|
|
/**
|
|
|
|
* @brief Represents the Global for wl_compositor interface.
|
|
|
|
*
|
|
|
|
**/
|
2014-11-13 14:07:31 +00:00
|
|
|
class KWAYLANDSERVER_EXPORT CompositorInterface : public Global
|
2014-08-28 07:52:35 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
virtual ~CompositorInterface();
|
|
|
|
|
|
|
|
Q_SIGNALS:
|
2015-09-09 15:31:13 +00:00
|
|
|
/**
|
|
|
|
* Emitted whenever this CompositorInterface created a SurfaceInterface.
|
|
|
|
**/
|
2014-09-17 14:10:38 +00:00
|
|
|
void surfaceCreated(KWayland::Server::SurfaceInterface*);
|
2015-09-09 15:31:13 +00:00
|
|
|
/**
|
|
|
|
* Emitted whenever this CompositorInterface created a RegionInterface.
|
|
|
|
**/
|
2014-10-16 11:04:51 +00:00
|
|
|
void regionCreated(KWayland::Server::RegionInterface*);
|
2014-08-28 07:52:35 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
explicit CompositorInterface(Display *display, QObject *parent = nullptr);
|
|
|
|
friend class Display;
|
2014-09-18 13:31:01 +00:00
|
|
|
class Private;
|
2014-08-28 07:52:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|