QWaylandObject Class
QWaylandObject é a classe base para objetos que podem conter extensões do Wayland. Mais...
| Cabeçalho: | #include <QWaylandObject> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| Herdado de: | QObject |
| Herdado por: | QWaylandCompositor, QWaylandCompositorExtension, QWaylandKeyboard, QWaylandOutput, QWaylandPointer, QWaylandSeat, QWaylandSurface e QWaylandTouch |
Funções públicas
| void | addExtension(QWaylandCompositorExtension *extension) |
| QWaylandCompositorExtension * | extension(const QByteArray &name) |
| QWaylandCompositorExtension * | extension(const wl_interface *interface) |
| QList<QWaylandCompositorExtension *> | extensions() const |
| void | removeExtension(QWaylandCompositorExtension *extension) |
Funções protegidas
| QWaylandObject(QObject *parent = nullptr) |
Descrição detalhada
O QWaylandObject encapsula a funcionalidade de contêiner de extensões. Qualquer objeto QWaylandObject será automaticamente um contêiner de extensões, e um objet QWaylandCompositorExtension, que seja filho deste, será automaticamente adicionado à sua lista de extensões e removido quando o objeto de extensão for destruído.
Documentação das funções de membro
[protected] QWaylandObject::QWaylandObject(QObject *parent = nullptr)
Cria um QWaylandObject como filho de um parent.
void QWaylandObject::addExtension(QWaylandCompositorExtension *extension)
Registra extension com este QWaylandObject.
QWaylandCompositorExtension *QWaylandObject::extension(const QByteArray &name)
Retorna a extensão do compositor que corresponde a name, caso tenha sido registrada no QWaylandObject. Se nenhuma extensão com esse nome tiver sido registrada, esta função retorna null.
QWaylandCompositorExtension *QWaylandObject::extension(const wl_interface *interface)
Retorna a extensão do compositor que corresponde à ` interface `, caso alguma tenha sido registrada com a ` QWaylandObject`. Se nenhuma extensão correspondente à interface tiver sido registrada, esta função retorna `null`.
QList<QWaylandCompositorExtension *> QWaylandObject::extensions() const
Retorna a lista de extensões de compositor que foram registradas neste QWaylandObject.
void QWaylandObject::removeExtension(QWaylandCompositorExtension *extension)
Remove extension da lista de extensões registradas neste QWaylandObject, caso ela já tenha sido registrada anteriormente por meio de addExtension().
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.