Qt 6.x
The Qt SDK
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 ()
 
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.
 

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(), and QWaylandCompositorPrivate::preInit().

+ 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

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