En esta página

QWaylandWlShellSurface Class

La clase QWaylandWlShellSurface proporciona características específicas del compositor de escritorio a una superficie. Más...

Cabecera: #include <QWaylandWlShellSurface>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
En QML: WlShellSurface
Hereda: QWaylandShellSurfaceTemplate

Tipos públicos

enum ResizeEdge { NoneEdge, TopEdge, BottomEdge, LeftEdge, TopLeftEdge, …, BottomRightEdge }

Propiedades

Funciones públicas

QWaylandWlShellSurface()
QWaylandWlShellSurface(QWaylandWlShell *shell, QWaylandSurface *surface, const QWaylandResource &res)
QString className() const
void initialize(QWaylandWlShell *shell, QWaylandSurface *surface, const QWaylandResource &resource)
void sendConfigure(const QSize &size, QWaylandWlShellSurface::ResizeEdge edges)
void sendPopupDone()
QWaylandWlShell *shell() const
QWaylandSurface *surface() const
QString title() const

Ranuras públicas

void ping()

Señales

Miembros públicos estáticos

QWaylandWlShellSurface *fromResource(wl_resource *resource)

Descripción detallada

Esta clase forma parte de la extensión QWaylandWlShell y proporciona una forma de ampliar la funcionalidad de un QWaylandSurface existente con características específicas de los compositores de escritorio, como redimensionar y mover la superficie.

Corresponde a la interfaz de Wayland wl_shell_surface.

Documentación de tipos de miembros

enum QWaylandWlShellSurface::ResizeEdge

Este tipo enum permite especificar un borde o una esquina de la superficie.

ConstanteValorDescripción
QWaylandWlShellSurface::NoneEdge0Sin borde.
QWaylandWlShellSurface::TopEdge1El borde superior.
QWaylandWlShellSurface::BottomEdge2El borde inferior.
QWaylandWlShellSurface::LeftEdge4El borde izquierdo.
QWaylandWlShellSurface::TopLeftEdge5La esquina superior izquierda.
QWaylandWlShellSurface::BottomLeftEdge6La esquina inferior izquierda.
QWaylandWlShellSurface::RightEdge8El borde derecho.
QWaylandWlShellSurface::TopRightEdge9La esquina superior derecha.
QWaylandWlShellSurface::BottomRightEdge10La esquina inferior derecha.

Documentación de propiedades

[read-only] className : QString

Esta propiedad contiene el nombre de la clase QWaylandWlShellSurface.

Funciones de acceso:

QString className() const

Señal del notificador:

void classNameChanged()

[read-only] shell : QWaylandWlShell*

Esta propiedad contiene el shell asociado a este QWaylandWlShellSurface.

Funciones de acceso:

QWaylandWlShell *shell() const

Señal del notificador:

void shellChanged()

[read-only] surface : QWaylandSurface*

Esta propiedad contiene la superficie asociada a este QWaylandWlShellSurface.

Funciones de acceso:

QWaylandSurface *surface() const

Señal del notificador:

void surfaceChanged()

[read-only] title : QString

Esta propiedad contiene el título de la QWaylandWlShellSurface.

Funciones de acceso:

QString title() const

Señal del notificador:

void titleChanged()

Documentación de funciones miembro

QWaylandWlShellSurface::QWaylandWlShellSurface()

Construye una QWaylandWlShellSurface.

QWaylandWlShellSurface::QWaylandWlShellSurface(QWaylandWlShell *shell, QWaylandSurface *surface, const QWaylandResource &res)

Construye un QWaylandWlShellSurface para surface y lo inicializa con el shell y el recurso res.

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

Devuelve el objeto QWaylandWlShellSurface asociado con el resource dado, o null si no existe tal objeto.

[invokable] void QWaylandWlShellSurface::initialize(QWaylandWlShell *shell, QWaylandSurface *surface, const QWaylandResource &resource)

Inicializa el QWaylandWlShellSurface y lo asocia con los shell, surface, y resource dados.

Nota: Esta función puede invocarse a través del sistema de metaobjetos y desde QML. Véase Q_INVOKABLE.

[slot] void QWaylandWlShellSurface::ping()

Envía un evento ping al cliente. Si el cliente responde al evento se emitirá la señal pong.

[invokable] void QWaylandWlShellSurface::sendConfigure(const QSize &size, QWaylandWlShellSurface::ResizeEdge edges)

Envía un evento configure al cliente, sugiriéndole que cambie el tamaño de su superficie al size proporcionado. edges proporciona una pista sobre cómo se ha redimensionado la superficie.

Nota: Esta función puede invocarse a través del sistema de metaobjetos y desde QML. Véase Q_INVOKABLE.

[invokable] void QWaylandWlShellSurface::sendPopupDone()

Envía un evento popup_done al cliente para indicar que el usuario ha hecho clic en algún lugar fuera de las superficies del cliente.

Nota: Esta función puede invocarse a través del sistema de metaobjetos y desde QML. Véase 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.