Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwaylandsurfacegrabber.h
Go to the documentation of this file.
1// Copyright (C) 2017 Klarälvdalens Datakonsult AB (KDAB).
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QWAYLANDSURFACEGRABBER_H
5#define QWAYLANDSURFACEGRABBER_H
6
7#include <QtWaylandCompositor/qtwaylandcompositorglobal.h>
8#include <QtCore/QObject>
9
11
12class QWaylandSurface;
14
15class Q_WAYLANDCOMPOSITOR_EXPORT QWaylandSurfaceGrabber : public QObject
16{
18 Q_DECLARE_PRIVATE(QWaylandSurfaceGrabber)
19public:
27 explicit QWaylandSurfaceGrabber(QWaylandSurface *surface, QObject *parent = nullptr);
28
29 QWaylandSurface *surface() const;
30 void grab();
31
33 void success(const QImage &image);
35};
36
38
39#endif // QWAYLANDSURFACEGRABBER_H
\inmodule QtGui
Definition qimage.h:37
\inmodule QtCore
Definition qobject.h:103
\inmodule QtWaylandCompositor
void success(const QImage &image)
void failed(Error error)
Error
The Error enum describes the reason for a grab failure.
\qmltype WaylandSurface \instantiates QWaylandSurface \inqmlmodule QtWayland.Compositor
Combined button and popup list for selecting options.
Definition image.cpp:4
DBusConnection const char DBusError * error
#define Q_ENUM(x)
#define Q_OBJECT
#define Q_SIGNALS