QWaylandObject is the base class for objects that can contain Wayland extensions. 更多...
头: | #include <QWaylandObject> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
qmake: | QT += waylandcompositor |
继承: | QObject |
继承者: |
QWaylandCompositor , QWaylandCompositorExtension , QWaylandKeyboard , QWaylandOutput , QWaylandPointer , QWaylandSeat , QWaylandSurface ,和 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 .
注册 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 .
移除 extension from the list of registered extensions in this QWaylandObject , if it has previously been registered using addExtension ().