WlShellSurface QML Type
Proporciona un ` wl_shell_surface ` que ofrece a una superficie funciones específicas del compositor, al estilo de un escritorio. Más...
| Import Statement: | import QtWayland.Compositor.WlShell |
| In C++: | QWaylandWlShellSurface |
Propiedades
- className : string
- shell : WlShell
- surface : WaylandSurface
- title : string
- windowType : enum
Métodos
- void initialize(WlShell shell, WaylandSurface surface, WaylandResource resource)
- void ping()
- void sendConfigure(size s, enum edges)
- void sendPopupDone()
Descripción detallada
Este tipo forma parte de la extensión WlShell y ofrece una forma de ampliar la funcionalidad de un WaylandSurface existente con características específicas de los compositores de estilo escritorio, como el cambio de tamaño y el desplazamiento de la superficie.
Se corresponde con la interfaz de Wayland wl_shell_surface.
Documentación de propiedades
className : string [read-only]
Esta propiedad contiene el nombre de la clase de la propiedad « WlShellSurface ».
shell : WlShell [read-only]
Esta propiedad contiene el shell asociado a este WlShellSurface.
surface : WaylandSurface [read-only]
Esta propiedad contiene el objeto « wl_surface » asociado a este « WlShellSurface ».
title : string [read-only]
Esta propiedad ostenta el título de « WlShellSurface ».
windowType : enum [read-only]
Esta propiedad contiene el tipo de ventana del objeto ` WlShellSurface`.
Documentación del método
void initialize(WlShell shell, WaylandSurface surface, WaylandResource resource)
Inicializa la variable « WlShellSurface » y la asocia a los valores indicados « shell », « surface » y « resource ».
void ping()
Envía un evento «ping» al cliente. Si el cliente responde al evento, se emitirá la señal «pong».
void sendConfigure(size s, enum edges)
Envía un evento de configuración al cliente, sugiriéndole que cambie el tamaño de su superficie al tamaño indicado s. El edges ofrece una indicación sobre cómo se ha modificado el tamaño de la superficie.
void 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.
© 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.