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
10
QT_BEGIN_NAMESPACE
11
12
class
QWaylandSurface
;
13
class
QWaylandSurfaceGrabberPrivate
;
14
15
class
Q_WAYLANDCOMPOSITOR_EXPORT
QWaylandSurfaceGrabber
:
public
QObject
16
{
17
Q_OBJECT
18
Q_DECLARE_PRIVATE(
QWaylandSurfaceGrabber
)
19
public
:
20
enum
Error
{
21
InvalidSurface
,
22
NoBufferAttached
,
23
UnknownBufferType
,
24
RendererNotReady
,
25
};
26
Q_ENUM
(
Error
)
27
explicit
QWaylandSurfaceGrabber
(
QWaylandSurface
*surface,
QObject
*parent =
nullptr
);
28
29
QWaylandSurface
*surface()
const
;
30
void
grab();
31
32
Q_SIGNALS
:
33
void
success
(
const
QImage
&
image
);
34
void
failed
(
Error
error
);
35
};
36
37
QT_END_NAMESPACE
38
39
#endif
// QWAYLANDSURFACEGRABBER_H
QImage
\inmodule QtGui
Definition
qimage.h:37
QObject
\inmodule QtCore
Definition
qobject.h:103
QWaylandSurfaceGrabberPrivate
Definition
qwaylandsurfacegrabber.cpp:37
QWaylandSurfaceGrabber
\inmodule QtWaylandCompositor
Definition
qwaylandsurfacegrabber.h:16
QWaylandSurfaceGrabber::success
void success(const QImage &image)
QWaylandSurfaceGrabber::failed
void failed(Error error)
QWaylandSurfaceGrabber::Error
Error
The Error enum describes the reason for a grab failure.
Definition
qwaylandsurfacegrabber.h:20
QWaylandSurfaceGrabber::UnknownBufferType
@ UnknownBufferType
Definition
qwaylandsurfacegrabber.h:23
QWaylandSurfaceGrabber::InvalidSurface
@ InvalidSurface
Definition
qwaylandsurfacegrabber.h:21
QWaylandSurfaceGrabber::NoBufferAttached
@ NoBufferAttached
Definition
qwaylandsurfacegrabber.h:22
QWaylandSurfaceGrabber::RendererNotReady
@ RendererNotReady
Definition
qwaylandsurfacegrabber.h:24
QWaylandSurface
\qmltype WaylandSurface \instantiates QWaylandSurface \inqmlmodule QtWayland.Compositor
Definition
qwaylandsurface.h:42
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
image
Definition
image.cpp:4
error
DBusConnection const char DBusError * error
Definition
qdbus_symbols_p.h:165
Error
@ Error
Definition
qqmlbuiltinfunctions.cpp:1761
Q_ENUM
#define Q_ENUM(x)
Definition
qtmetamacros.h:68
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:119
Q_SIGNALS
#define Q_SIGNALS
Definition
qtmetamacros.h:45
qtwayland
src
compositor
compositor_api
qwaylandsurfacegrabber.h
Generated by
1.10.0