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
QWaylandQuickCompositor Class Reference

#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 ()
 

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.
 

Detailed Description

Definition at line 18 of file qwaylandquickcompositor.h.

Constructor & Destructor Documentation

◆ QWaylandQuickCompositor()

QWaylandQuickCompositor::QWaylandQuickCompositor ( QObject * parent = nullptr)

Definition at line 44 of file qwaylandquickcompositor.cpp.

Member Function Documentation

◆ classBegin()

void QWaylandQuickCompositor::classBegin ( )
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().

+ Here is the call graph for this function:

◆ componentComplete()

void QWaylandQuickCompositor::componentComplete ( )
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:

◆ create()

void QWaylandQuickCompositor::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().

+ Here is the caller graph for this function:

◆ grabSurface()

void QWaylandQuickCompositor::grabSurface ( QWaylandSurfaceGrabber * grabber,
const QWaylandBufferRef & buffer )
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.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: