kwin/src/wayland/compositor_interface.h

52 lines
1.1 KiB
C
Raw Normal View History

/*
SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org>
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
#include "global.h"
#include "region_interface.h"
#include "surface_interface.h"
#include <QObject>
2020-04-29 14:56:38 +00:00
#include <KWaylandServer/kwaylandserver_export.h>
2020-04-29 14:56:38 +00:00
namespace KWaylandServer
{
class Display;
class SurfaceInterface;
/**
* @brief Represents the Global for wl_compositor interface.
*
**/
class KWAYLANDSERVER_EXPORT CompositorInterface : public Global
{
Q_OBJECT
public:
virtual ~CompositorInterface();
Q_SIGNALS:
/**
* Emitted whenever this CompositorInterface created a SurfaceInterface.
**/
2020-04-29 14:56:38 +00:00
void surfaceCreated(KWaylandServer::SurfaceInterface*);
/**
* Emitted whenever this CompositorInterface created a RegionInterface.
**/
2020-04-29 14:56:38 +00:00
void regionCreated(KWaylandServer::RegionInterface*);
private:
explicit CompositorInterface(Display *display, QObject *parent = nullptr);
friend class Display;
class Private;
};
}
#endif