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>.
|
#include <qwaylandquickcompositor.h>
Public Member Functions | |
QWaylandQuickCompositor (QObject *parent=nullptr) | |
void | create () override |
\qmlproperty list QtWayland.Compositor::WaylandCompositor::extensions | |
void | grabSurface (QWaylandSurfaceGrabber *grabber, const QWaylandBufferRef &buffer) override |
Grab the surface content from the given buffer. | |
Public Member Functions inherited from QQmlParserStatus | |
QQmlParserStatus () | |
virtual | ~QQmlParserStatus () |
Protected Member Functions | |
void | classBegin () override |
Invoked after class creation, but before any properties have been set. | |
void | componentComplete () override |
Invoked after the root component that caused this instantiation has completed construction. | |
Definition at line 18 of file qwaylandquickcompositor.h.
Definition at line 44 of file qwaylandquickcompositor.cpp.
|
overrideprotectedvirtual |
Invoked after class creation, but before any properties have been set.
Implements QQmlParserStatus.
Definition at line 76 of file qwaylandquickcompositor.cpp.
References QWaylandCompositorPrivate::get().
|
overrideprotectedvirtual |
Invoked after the root component that caused this instantiation has completed construction.
At this point all static values and binding values have been assigned to the class.
Implements QQmlParserStatus.
Definition at line 81 of file qwaylandquickcompositor.cpp.
References create().
|
override |
\qmlproperty list QtWayland.Compositor::WaylandCompositor::extensions
A list of extensions that the compositor advertises to its clients. For any Wayland extension the compositor should support, instantiate its component, and add it to the list of extensions.
For instance, the following code would allow the clients to request wl_shell
surfaces in the compositor using the wl_shell
interface.
\qml import QtWayland.Compositor
WaylandCompositor { WlShell { // ... } } \endqml
Definition at line 70 of file qwaylandquickcompositor.cpp.
Referenced by componentComplete().
|
override |
Grab the surface content from the given buffer.
Reimplemented from QWaylandCompositor::grabSurface.
Definition at line 90 of file qwaylandquickcompositor.cpp.
References QOpenGLFramebufferObject::bind(), QOpenGLTextureBlitter::bind(), QOpenGLTextureBlitter::blit(), QOpenGLTextureBlitter::create(), emit, QOpenGLTextureBlitter::OriginBottomLeft, QOpenGLTextureBlitter::OriginTopLeft, QWaylandSurface::OriginTopLeft, output, QOpenGLTextureBlitter::release(), QWaylandSurfaceGrabber::RendererNotReady, state, QOpenGLFramebufferObject::toImage(), and QWaylandSurfaceGrabber::UnknownBufferType.