2020-03-15 15:19:28 +00:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org>
|
2014-08-28 07:52:35 +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
|
|
|
|
*/
|
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
|