Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
11
QT_BEGIN_NAMESPACE
12
13
class
QWaylandSurface;
14
class
QWaylandSurfaceGrabberPrivate
;
15
16
class
Q_WAYLANDCOMPOSITOR_EXPORT
QWaylandSurfaceGrabber
:
public
QObject
17
{
18
Q_OBJECT
19
Q_DECLARE_PRIVATE(QWaylandSurfaceGrabber)
20
public
:
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
33
Q_SIGNALS:
34
void
success(
const
QImage &image);
35
void
failed(Error error);
36
};
37
38
QT_END_NAMESPACE
39
40
#
endif
// QWAYLANDSURFACEGRABBER_H
QWaylandQuickCompositorPrivate
Definition
qwaylandquickcompositor.cpp:29
QWaylandQuickCompositorPrivate::createDefaultSurface
QWaylandSurface * createDefaultSurface() override
Definition
qwaylandquickcompositor.cpp:37
QWaylandQuickCompositorPrivate::QWaylandQuickCompositorPrivate
QWaylandQuickCompositorPrivate(QWaylandCompositor *compositor)
Definition
qwaylandquickcompositor.cpp:31
QWaylandQuickCompositor
Definition
qwaylandquickcompositor.h:20
QWaylandQuickItemPrivate
Definition
qwaylandquickitem_p.h:76
QWaylandQuickItem
\qmltype WaylandQuickItem \nativetype QWaylandQuickItem \inqmlmodule QtWayland.Compositor
Definition
qwaylandquickitem.h:28
QWaylandQuickOutput
Definition
qwaylandquickoutput.h:21
QWaylandQuickSurface
Definition
qwaylandquicksurface.h:21
QWaylandSurfaceGrabberPrivate
Definition
qwaylandsurfacegrabber.cpp:38
QWaylandSurfaceGrabber
\inmodule QtWaylandCompositor
Definition
qwaylandsurfacegrabber.h:17
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(animation)
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(liburing)
Q_DECLARE_METATYPE
QT_END_NAMESPACE Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhosQpa::enums::kit::ShareKit::systemShare::SelectionMode))
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(wayland_compositor_quick)
qtwayland
src
compositor
compositor_api
qwaylandsurfacegrabber.h
Generated on
for Qt by
1.18.0