Nesta página

QWaylandIviSurface Class

A classe QWaylandIviSurface oferece uma maneira simples de identificar e redimensionar uma superfície. Mais...

Cabeçalho: #include <QWaylandIviSurface>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
No QML: IviSurface
Herda de: QWaylandShellSurfaceTemplate

Propriedades

Funções públicas

QWaylandIviSurface()
QWaylandIviSurface(QWaylandIviApplication *application, QWaylandSurface *surface, uint iviId, const QWaylandResource &resource)
void initialize(QWaylandIviApplication *iviApplication, QWaylandSurface *surface, uint iviId, const QWaylandResource &resource)
uint iviId() const
void sendConfigure(const QSize &size)
QWaylandSurface *surface() const

Sinais

Membros públicos estáticos

QWaylandIviSurface *fromResource(wl_resource *resource)
const struct wl_interface *interface()
QWaylandSurfaceRole *role()

Descrição detalhada

Esta classe faz parte da extensão QWaylandIviApplication e oferece uma maneira de ampliar a funcionalidade de um QWaylandSurface já existente, permitindo redimensioná-lo e identificá-lo.

Ela corresponde à interface Wayland ivi_surface.

Documentação das propriedades

[read-only] iviId : uint

Esta propriedade contém o ID do ivi deste QWaylandIviSurface.

Funções de acesso:

uint iviId() const

Sinal de notificação:

void iviIdChanged()

[read-only] surface : QWaylandSurface*

Esta propriedade contém a superfície associada a este QWaylandIviSurface.

Funções de acesso:

QWaylandSurface *surface() const

Sinal do Notifier:

void surfaceChanged()

Documentação das funções de membro

QWaylandIviSurface::QWaylandIviSurface()

Cria um objeto QWaylandIviSurface.

QWaylandIviSurface::QWaylandIviSurface(QWaylandIviApplication *application, QWaylandSurface *surface, uint iviId, const QWaylandResource &resource)

Cria um objeto `QWaylandIviSurface` para ` surface ` e o inicializa com os valores fornecidos: ` application`, ` surface`, ` iviId` e ` resource`.

[static] QWaylandIviSurface *QWaylandIviSurface::fromResource(wl_resource *resource)

Retorna o ` QWaylandIviSurface ` correspondente ao ` resource`.

[invokable] void QWaylandIviSurface::initialize(QWaylandIviApplication *iviApplication, QWaylandSurface *surface, uint iviId, const QWaylandResource &resource)

Inicializa o ` QWaylandIviSurface`, associando-o aos seguintes valores: ` iviApplication`, ` surface`, ` iviId` 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 *QWaylandIviSurface::interface()

Retorna a interface Wayland para o ` QWaylandIviSurface`.

[static] QWaylandSurfaceRole *QWaylandIviSurface::role()

Retorna a função da superfície para o QWaylandIviSurface.

[invokable] void QWaylandIviSurface::sendConfigure(const QSize &size)

Envia um evento de configuração ao cliente, instruindo-o a redimensionar a superfície de acordo com o valor fornecido em ` size`.

Observação: essa função pode ser chamada por meio do sistema de metaobjetos e a partir do QML. Consulte Q_INVOKABLE.

© 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.