QWaylandXdgSurface Class
La clase QWaylandXdgSurface proporciona a una superficie xdg características específicas del compositor de escritorio. Más...
| Cabecera: | #include <QWaylandXdgSurface> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| En QML: | XdgSurface |
| Hereda: | QWaylandShellSurfaceTemplate |
Propiedades
|
Funciones 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 |
Señales
| void | popupCreated() |
| void | shellChanged() |
| void | surfaceChanged() |
| void | toplevelCreated() |
| void | windowGeometryChanged() |
Miembros públicos estáticos
| QWaylandXdgSurface * | fromResource(wl_resource *resource) |
| const struct wl_interface * | interface() |
Descripción detallada
Esta clase forma parte de la extensión QWaylandXdgShell 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.
Se corresponde con la interfaz de Wayland xdg_surface.
Documentación de propiedades
[read-only] popup : QWaylandXdgPopup*
Esta propiedad contiene las propiedades y métodos específicos de la ventana emergente QWaylandXdgSurface.
Funciones de acceso:
| QWaylandXdgPopup * | popup() const |
Señal del notificador:
| void | popupCreated() |
Véase también QWaylandXdgSurface::toplevel y QWaylandXdgShell::popupCreated.
[read-only] shell : QWaylandXdgShell*
Esta propiedad contiene el shell asociado a este QWaylandXdgSurface.
Funciones de acceso:
| QWaylandXdgShell * | shell() const |
Señal del notificador:
| void | shellChanged() |
[read-only] surface : QWaylandSurface*
Esta propiedad contiene la superficie asociada a este QWaylandXdgSurface.
Funciones de acceso:
| QWaylandSurface * | surface() const |
Señal del notificador:
| void | surfaceChanged() |
[read-only] toplevel : QWaylandXdgToplevel*
Esta propiedad contiene las propiedades y métodos específicos del nivel superior QWaylandXdgSurface.
Funciones de acceso:
| QWaylandXdgToplevel * | toplevel() const |
Señal del notificador:
| void | toplevelCreated() |
Véase también QWaylandXdgSurface::popup y QWaylandXdgShell::toplevelCreated.
[read-only] windowGeometry : QRect
Esta propiedad contiene la geometría de la ventana de QWaylandXdgSurface. La geometría de la ventana describe los límites visibles de la ventana desde la perspectiva del usuario. La geometría incluye las barras de título y los bordes si han sido dibujados por el cliente, pero excluye las sombras. Se utiliza para alinear y embaldosar ventanas.
Funciones de acceso:
| QRect | windowGeometry() const |
Señal del notificador:
| void | windowGeometryChanged() |
Documentación de las funciones miembro
[explicit] QWaylandXdgSurface::QWaylandXdgSurface()
Construye una QWaylandXdgSurface.
[explicit] QWaylandXdgSurface::QWaylandXdgSurface(QWaylandXdgShell *xdgShell, QWaylandSurface *surface, const QWaylandResource &res)
Construye una QWaylandXdgSurface para surface y la inicializa con los datos xdgShell, surface, y el recurso res.
[static] QWaylandXdgSurface *QWaylandXdgSurface::fromResource(wl_resource *resource)
Devuelve el QWaylandXdgSurface correspondiente al resource.
[invokable] void QWaylandXdgSurface::initialize(QWaylandXdgShell *xdgShell, QWaylandSurface *surface, const QWaylandResource &resource)
Inicializa el QWaylandXdgSurface, asociándolo a los xdgShell, surface y resource dados.
Nota: Esta función puede invocarse a través del sistema de metaobjetos y desde QML. Véase Q_INVOKABLE.
[static] const struct wl_interface *QWaylandXdgSurface::interface()
Devuelve la interfaz Wayland para 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.