![]() |
Qt 6.x
The Qt SDK
|
#include <qwaylandquickcompositor.h>
Inheritance diagram for QWaylandQuickCompositor:
Collaboration diagram for QWaylandQuickCompositor: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 () |
| virtual void | classBegin ()=0 |
| Invoked after class creation, but before any properties have been set. | |
| virtual void | componentComplete ()=0 |
| Invoked after the root component that caused this instantiation has completed construction. | |
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(), and QWaylandCompositorPrivate::preInit().
Here is the call graph for this function:
|
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().
Here is the call graph for this function:
|
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().
Here is the caller graph for this function:
|
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, QWaylandSurfaceGrabber::failed(), QOpenGLTextureBlitter::OriginBottomLeft, QOpenGLTextureBlitter::OriginTopLeft, QWaylandSurface::OriginTopLeft, output, QOpenGLTextureBlitter::release(), QWaylandSurfaceGrabber::RendererNotReady, state, QWaylandSurfaceGrabber::success(), QOpenGLFramebufferObject::toImage(), and QWaylandSurfaceGrabber::UnknownBufferType.
Here is the call graph for this function: