2020-03-15 15:19:28 +00:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2018 David Edmundson <kde@davidedmundson.co.uk>
|
2020-08-20 11:26:19 +00:00
|
|
|
SPDX-FileCopyrightText: 2020 David Edmundson <kde@davidedmundson.co.uk>
|
2018-05-15 09:45:17 +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
|
|
|
|
*/
|
2022-12-16 20:08:44 +00:00
|
|
|
#pragma once
|
2018-05-15 09:45:17 +00:00
|
|
|
|
2022-04-22 09:27:33 +00:00
|
|
|
#include "kwin_export.h"
|
2018-05-15 09:45:17 +00:00
|
|
|
|
2022-04-22 09:27:33 +00:00
|
|
|
#include <QObject>
|
2022-08-01 21:29:02 +00:00
|
|
|
#include <memory>
|
2018-05-15 09:45:17 +00:00
|
|
|
|
2020-04-29 14:56:38 +00:00
|
|
|
namespace KWaylandServer
|
2018-05-15 09:45:17 +00:00
|
|
|
{
|
|
|
|
class Display;
|
|
|
|
class OutputInterface;
|
2020-08-20 11:26:19 +00:00
|
|
|
class XdgOutputManagerV1InterfacePrivate;
|
2018-05-15 09:45:17 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Global manager for XdgOutputs
|
|
|
|
*/
|
2022-04-22 09:27:33 +00:00
|
|
|
class KWIN_EXPORT XdgOutputManagerV1Interface : public QObject
|
2018-05-15 09:45:17 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
2020-12-09 20:13:19 +00:00
|
|
|
|
2018-05-15 09:45:17 +00:00
|
|
|
public:
|
2020-12-09 20:13:19 +00:00
|
|
|
explicit XdgOutputManagerV1Interface(Display *display, QObject *parent = nullptr);
|
2020-08-20 11:26:19 +00:00
|
|
|
~XdgOutputManagerV1Interface() override;
|
2018-05-15 09:45:17 +00:00
|
|
|
|
2022-10-27 10:37:46 +00:00
|
|
|
void offer(OutputInterface *output);
|
2018-05-15 09:45:17 +00:00
|
|
|
|
|
|
|
private:
|
2022-10-27 10:37:46 +00:00
|
|
|
std::unique_ptr<XdgOutputManagerV1InterfacePrivate> d;
|
2018-05-15 09:45:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|