Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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// Qt-Security score:significant reason:default
4
5#ifndef QWAYLANDSURFACEGRABBER_H
6#define QWAYLANDSURFACEGRABBER_H
7
8#include <QtWaylandCompositor/qtwaylandcompositorglobal.h>
9#include <QtCore/QObject>
10
12
13class QWaylandSurface;
15
16class Q_WAYLANDCOMPOSITOR_EXPORT QWaylandSurfaceGrabber : public QObject
17{
18 Q_OBJECT
19 Q_DECLARE_PRIVATE(QWaylandSurfaceGrabber)
20public:
21 enum Error {
22 InvalidSurface,
23 NoBufferAttached,
24 UnknownBufferType,
25 RendererNotReady,
26 };
27 Q_ENUM(Error)
28 explicit QWaylandSurfaceGrabber(QWaylandSurface *surface, QObject *parent = nullptr);
29
30 QWaylandSurface *surface() const;
31 void grab();
32
33Q_SIGNALS:
34 void success(const QImage &image);
35 void failed(Error error);
36};
37
38QT_END_NAMESPACE
39
40#endif // QWAYLANDSURFACEGRABBER_H
QWaylandSurface * createDefaultSurface() override
QWaylandQuickCompositorPrivate(QWaylandCompositor *compositor)
\qmltype WaylandQuickItem \nativetype QWaylandQuickItem \inqmlmodule QtWayland.Compositor
\inmodule QtWaylandCompositor
Combined button and popup list for selecting options.
QT_REQUIRE_CONFIG(animation)
QT_REQUIRE_CONFIG(liburing)
QT_END_NAMESPACE Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::kit::ShareKit::systemShare::SelectionMode))
QT_REQUIRE_CONFIG(wayland_compositor_quick)