Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
qwaylandview.h
Go to the documentation of this file.
1
// Copyright (C) 2017 Jolla Ltd, author: <giulio.camuffo@jollamobile.com>
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4
#ifndef QWAYLANDSURFACEVIEW_H
5
#define QWAYLANDSURFACEVIEW_H
6
7
#include <QtWaylandCompositor/QWaylandBufferRef>
8
#include <QtWaylandCompositor/qtwaylandcompositorglobal.h>
9
10
#include <QtCore/QPointF>
11
#include <QtCore/QObject>
12
13
QT_BEGIN_NAMESPACE
14
15
class
QWaylandSurface
;
16
class
QWaylandViewPrivate
;
17
class
QWaylandOutput
;
18
19
class
Q_WAYLANDCOMPOSITOR_EXPORT
QWaylandView
:
public
QObject
20
{
21
Q_OBJECT
22
Q_DECLARE_PRIVATE(
QWaylandView
)
23
Q_PROPERTY
(
QObject
*renderObject READ renderObject CONSTANT)
24
Q_PROPERTY
(
QWaylandSurface
*surface READ surface WRITE
setSurface
NOTIFY surfaceChanged)
25
Q_PROPERTY
(
QWaylandOutput
*
output
READ
output
WRITE setOutput NOTIFY outputChanged)
26
Q_PROPERTY
(
bool
bufferLocked READ isBufferLocked WRITE setBufferLocked NOTIFY bufferLockedChanged)
27
Q_PROPERTY
(
bool
allowDiscardFrontBuffer READ allowDiscardFrontBuffer WRITE setAllowDiscardFrontBuffer NOTIFY allowDiscardFrontBufferChanged)
28
Q_MOC_INCLUDE
(
"qwaylandoutput.h"
)
29
public
:
30
QWaylandView
(
QObject
*renderObject =
nullptr
,
QObject
*
parent
=
nullptr
);
31
~QWaylandView
()
override
;
32
33
QObject
*renderObject()
const
;
34
35
QWaylandSurface
*surface()
const
;
36
void
setSurface
(
QWaylandSurface
*surface);
37
38
QWaylandOutput
*
output
()
const
;
39
void
setOutput(
QWaylandOutput
*
output
);
40
41
virtual
void
bufferCommitted(
const
QWaylandBufferRef
&
buffer
,
const
QRegion
&damage);
42
virtual
bool
advance();
43
virtual
void
discardCurrentBuffer();
44
virtual
QWaylandBufferRef
currentBuffer();
45
virtual
QRegion
currentDamage();
46
47
bool
isBufferLocked()
const
;
48
void
setBufferLocked(
bool
locked);
49
50
bool
allowDiscardFrontBuffer()
const
;
51
void
setAllowDiscardFrontBuffer(
bool
discard);
52
53
void
setPrimary();
54
bool
isPrimary()
const
;
55
56
struct
wl_resource *surfaceResource()
const
;
57
58
Q_SIGNALS
:
59
void
surfaceChanged
();
60
void
surfaceDestroyed
();
61
void
outputChanged
();
62
void
bufferLockedChanged
();
63
void
allowDiscardFrontBufferChanged
();
64
};
65
66
QT_END_NAMESPACE
67
68
#endif
setSurface
static void setSurface(JNIEnv *env, jobject, jint id, jobject jSurface, jint w, jint h)
Definition
androidjnimain.cpp:606
QObject
\inmodule QtCore
Definition
qobject.h:90
QRegion
The QRegion class specifies a clip region for a painter.
Definition
qregion.h:27
QWaylandBufferRef
\inmodule QtWaylandCompositor
Definition
qwaylandbufferref.h:28
QWaylandOutput
\qmltype WaylandOutput \instantiates QWaylandOutput \inqmlmodule QtWayland.Compositor
Definition
qwaylandoutput.h:27
QWaylandSurface
\qmltype WaylandSurface \instantiates QWaylandSurface \inqmlmodule QtWayland.Compositor
Definition
qwaylandsurface.h:42
QWaylandViewPrivate
Definition
qwaylandview_p.h:32
QWaylandView
\qmltype WaylandView \instantiates QWaylandView \inqmlmodule QtWayland.Compositor
Definition
qwaylandview.h:20
QWaylandView::surfaceDestroyed
void surfaceDestroyed()
QWaylandView::allowDiscardFrontBufferChanged
void allowDiscardFrontBufferChanged()
QWaylandView::bufferLockedChanged
void bufferLockedChanged()
QWaylandView::outputChanged
void outputChanged()
QWaylandView::surfaceChanged
void surfaceChanged()
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
buffer
GLenum GLuint buffer
Definition
qopengles2ext.h:659
Q_PROPERTY
#define Q_PROPERTY(...)
Definition
qtmetamacros.h:56
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:117
Q_MOC_INCLUDE
#define Q_MOC_INCLUDE(...)
Definition
qtmetamacros.h:79
Q_SIGNALS
#define Q_SIGNALS
Definition
qtmetamacros.h:45
output
QT_BEGIN_NAMESPACE typedef uchar * output
Definition
qvideoframeconversionhelper_p.h:24
parent
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent
Definition
uiaclientinterfaces_p.h:209
qtwayland
src
compositor
compositor_api
qwaylandview.h
Generated by
1.9.7