bdb138bdcd
Currently, we have a mix of Frameworks versions and Plasma versions in @since tags, which leads to some confusion. Since this is an unstable library, one cannot rely on since version tags, we are free to add, change, and remove apis to serve best to kwin requirements. Thus, we can simply remove all since version tags to fix mixing up different product versions.
39 lines
1,017 B
C++
39 lines
1,017 B
C++
/*
|
|
SPDX-FileCopyrightText: 2020 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
|
|
|
|
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <KWaylandServer/kwaylandserver_export.h>
|
|
|
|
#include <QObject>
|
|
|
|
namespace KWaylandServer
|
|
{
|
|
|
|
class Display;
|
|
class ViewporterInterfacePrivate;
|
|
|
|
/**
|
|
* The ViewporterInterface is an extension that allows clients to crop and scale surfaces.
|
|
*
|
|
* The ViewporterInterface extensions provides a way for Wayland clients to crop and scale their
|
|
* surfaces. This effectively breaks the direct connection between the buffer and the surface size.
|
|
*
|
|
* ViewporterInterface corresponds to the Wayland interface @c wp_viewporter.
|
|
*/
|
|
class KWAYLANDSERVER_EXPORT ViewporterInterface : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ViewporterInterface(Display *display, QObject *parent = nullptr);
|
|
~ViewporterInterface() override;
|
|
|
|
private:
|
|
QScopedPointer<ViewporterInterfacePrivate> d;
|
|
};
|
|
|
|
} // namespace KWaylandServer
|