KWaylandServer

viewporter_interface.h
1 /*
2  SPDX-FileCopyrightText: 2020 Vlad Zahorodnii <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 
7 #pragma once
8 
9 #include <KWaylandServer/kwaylandserver_export.h>
10 
11 #include <QObject>
12 
13 namespace KWaylandServer
14 {
15 class Display;
16 class ViewporterInterfacePrivate;
17 
18 /**
19  * The ViewporterInterface is an extension that allows clients to crop and scale surfaces.
20  *
21  * The ViewporterInterface extensions provides a way for Wayland clients to crop and scale their
22  * surfaces. This effectively breaks the direct connection between the buffer and the surface size.
23  *
24  * ViewporterInterface corresponds to the Wayland interface @c wp_viewporter.
25  */
26 class KWAYLANDSERVER_EXPORT ViewporterInterface : public QObject
27 {
28  Q_OBJECT
29 
30 public:
31  explicit ViewporterInterface(Display *display, QObject *parent = nullptr);
32  ~ViewporterInterface() override;
33 
34 private:
36 };
37 
38 } // namespace KWaylandServer
Class holding the Wayland server display loop.
Definition: display.h:47
The ViewporterInterface is an extension that allows clients to crop and scale surfaces.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Oct 23 2021 23:08:28 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.