QWaylandIviSurface Class
La clase QWaylandIviSurface ofrece una forma sencilla de identificar y cambiar el tamaño de una superficie. Más información...
| Encabezado: | #include <QWaylandIviSurface> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| En QML: | IviSurface |
| Heredan: | QWaylandShellSurfaceTemplate |
Propiedades
Funciones 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 |
Señales
| void | iviIdChanged() |
| void | surfaceChanged() |
Miembros públicos estáticos
| QWaylandIviSurface * | fromResource(wl_resource *resource) |
| const struct wl_interface * | interface() |
| QWaylandSurfaceRole * | role() |
Descripción detallada
Esta clase forma parte de la extensión QWaylandIviApplication y permite ampliar la funcionalidad de un QWaylandSurface ya existente, añadiendo la posibilidad de cambiar su tamaño e identificarlo.
Se corresponde con la interfaz « ivi_surface » de Wayland.
Documentación de propiedades
[read-only] iviId : uint
Esta propiedad contiene el identificador ivi de este QWaylandIviSurface.
Funciones de acceso:
| uint | iviId() const |
Señal de notificación:
| void | iviIdChanged() |
[read-only] surface : QWaylandSurface*
Esta propiedad contiene la superficie asociada a este QWaylandIviSurface.
Funciones de acceso:
| QWaylandSurface * | surface() const |
Señal de notificador:
| void | surfaceChanged() |
Documentación de funciones de miembro
QWaylandIviSurface::QWaylandIviSurface()
Crea un objeto de tipo QWaylandIviSurface.
QWaylandIviSurface::QWaylandIviSurface(QWaylandIviApplication *application, QWaylandSurface *surface, uint iviId, const QWaylandResource &resource)
Crea un objeto `QWaylandIviSurface` para ` surface ` y lo inicializa con los valores proporcionados ` application`, ` surface`, ` iviId` y ` resource`.
[static] QWaylandIviSurface *QWaylandIviSurface::fromResource(wl_resource *resource)
Devuelve el objeto ` QWaylandIviSurface ` correspondiente al ` resource`.
[invokable] void QWaylandIviSurface::initialize(QWaylandIviApplication *iviApplication, QWaylandSurface *surface, uint iviId, const QWaylandResource &resource)
Inicializa el objeto « QWaylandIviSurface », asociándolo con los valores « iviApplication », « surface », « iviId » y « resource » proporcionados.
Nota: Esta función se puede invocar a través del sistema de metaobjetos y desde QML. Véase Q_INVOKABLE.
[static] const struct wl_interface *QWaylandIviSurface::interface()
Devuelve la interfaz Wayland para el objeto ` QWaylandIviSurface`.
[static] QWaylandSurfaceRole *QWaylandIviSurface::role()
Devuelve la función de superficie de QWaylandIviSurface.
[invokable] void QWaylandIviSurface::sendConfigure(const QSize &size)
Envía un evento de configuración al cliente, indicándole que cambie el tamaño de la superficie al especificado en size.
Nota: Esta función se puede invocar 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.