QWaylandXdgSurface Class
A classe QWaylandXdgSurface oferece recursos específicos do compositor, semelhantes aos de uma área de trabalho, para uma superfície xdg. Mais...
| Cabeçalho: | #include <QWaylandXdgSurface> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| No QML: | XdgSurface |
| Herdado de: | QWaylandShellSurfaceTemplate |
Propriedades
|
Funções públicas
| QWaylandXdgSurface() | |
| QWaylandXdgSurface(QWaylandXdgShell *xdgShell, QWaylandSurface *surface, const QWaylandResource &res) | |
| void | initialize(QWaylandXdgShell *xdgShell, QWaylandSurface *surface, const QWaylandResource &resource) |
| QWaylandXdgPopup * | popup() const |
| QWaylandXdgShell * | shell() const |
| QWaylandSurface * | surface() const |
| QWaylandXdgToplevel * | toplevel() const |
| QRect | windowGeometry() const |
Sinais
| void | popupCreated() |
| void | shellChanged() |
| void | surfaceChanged() |
| void | toplevelCreated() |
| void | windowGeometryChanged() |
Membros públicos estáticos
| QWaylandXdgSurface * | fromResource(wl_resource *resource) |
| const struct wl_interface * | interface() |
Descrição detalhada
Esta classe faz parte da extensão QWaylandXdgShell e oferece uma maneira de ampliar a funcionalidade de uma superfície de trabalho existente ( QWaylandSurface ) com recursos específicos para compositores do tipo desktop, como redimensionamento e movimentação da superfície.
Ela corresponde à interface Wayland xdg_surface.
Documentação das propriedades
[read-only] popup : QWaylandXdgPopup*
Essa propriedade contém as propriedades e os métodos específicos do pop-up QWaylandXdgSurface.
Funções de acesso:
| QWaylandXdgPopup * | popup() const |
Sinal do Notifier:
| void | popupCreated() |
Veja também QWaylandXdgSurface::toplevel e QWaylandXdgShell::popupCreated.
[read-only] shell : QWaylandXdgShell*
Esta propriedade contém o shell associado a este QWaylandXdgSurface.
Funções de acesso:
| QWaylandXdgShell * | shell() const |
Sinal do Notifier:
| void | shellChanged() |
[read-only] surface : QWaylandSurface*
Esta propriedade contém a superfície associada a este QWaylandXdgSurface.
Funções de acesso:
| QWaylandSurface * | surface() const |
Sinal do Notifier:
| void | surfaceChanged() |
[read-only] toplevel : QWaylandXdgToplevel*
Essa propriedade contém as propriedades e os métodos específicos do objeto de nível superior ` QWaylandXdgSurface`.
Funções de acesso:
| QWaylandXdgToplevel * | toplevel() const |
Sinal do Notifier:
| void | toplevelCreated() |
Veja também ` QWaylandXdgSurface::popup ` e ` QWaylandXdgShell::toplevelCreated`.
[read-only] windowGeometry : QRect
Esta propriedade armazena a geometria da janela do objeto ` QWaylandXdgSurface`. A geometria da janela descreve os limites visíveis da janela da perspectiva do usuário. A geometria inclui barras de título e bordas, caso sejam desenhadas pelo cliente, mas exclui sombras projetadas. Ela se destina a ser usada para alinhar e organizar janelas lado a lado.
Funções de acesso:
| QRect | windowGeometry() const |
Sinal do Notifier:
| void | windowGeometryChanged() |
Documentação das funções de membro
[explicit] QWaylandXdgSurface::QWaylandXdgSurface()
Cria um objeto QWaylandXdgSurface.
[explicit] QWaylandXdgSurface::QWaylandXdgSurface(QWaylandXdgShell *xdgShell, QWaylandSurface *surface, const QWaylandResource &res)
Cria um objeto `QWaylandXdgSurface` para ` surface ` e o inicializa com os parâmetros fornecidos: ` xdgShell`, ` surface` e o recurso ` res`.
[static] QWaylandXdgSurface *QWaylandXdgSurface::fromResource(wl_resource *resource)
Retorna o ` QWaylandXdgSurface ` correspondente ao ` resource`.
[invokable] void QWaylandXdgSurface::initialize(QWaylandXdgShell *xdgShell, QWaylandSurface *surface, const QWaylandResource &resource)
Inicializa o ` QWaylandXdgSurface`, associando-o aos valores fornecidos ` xdgShell`, ` surface ` e ` resource`.
Observação: Esta função pode ser chamada por meio do sistema de metaobjetos e a partir do QML. Consulte Q_INVOKABLE.
[static] const struct wl_interface *QWaylandXdgSurface::interface()
Retorna a interface Wayland para o ` QWaylandXdgSurface`.
© 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.