QWaylandObject is the base class for objects that can contain Wayland extensions. More...
| Header: | #include <QWaylandObject>
|
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
|
| qmake: | QT += waylandcompositor
|
| Inherits: | QObject |
| Inherited By: | QWaylandCompositor, QWaylandCompositorExtension, QWaylandKeyboard, QWaylandOutput, QWaylandPointer, QWaylandSeat, QWaylandSurface, and QWaylandTouch |
| void | addExtension(QWaylandCompositorExtension *extension) |
| QWaylandCompositorExtension * | extension(const QByteArray &name) |
| QWaylandCompositorExtension * | extension(const wl_interface *interface) |
| QList<QWaylandCompositorExtension *> | extensions() const |
| void | removeExtension(QWaylandCompositorExtension *extension) |
| QWaylandObject(QObject *parent = nullptr) |
The QWaylandObject encapsulate extension container functionality. Any QWaylandObject object will automatically be an extension container and QWaylandCompositorExtension object which is a child of this will automatically add itself to its extension list, and remove itself when the extension object is destroyed.
[protected] QWaylandObject::QWaylandObject(QObject *parent = nullptr)
Creates a QWaylandObject as a child of parent.
Registers extension with this QWaylandObject.
Returns the compositor extension which matches name if one has been registered with the QWaylandObject. If no extension matching the name has been registered, this function returns null.
Returns the compositor extension which matches interface if one has been registered with the QWaylandObject. If no extension matching the interface has been registered, this function returns null.
Returns the list of compositor extensions that have been registered with this QWaylandObject.
Removes extension from the list of registered extensions in this QWaylandObject, if it has previously been registered using addExtension().
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.9/qwaylandobject.html