QWaylandIviSurface Class
La classe QWaylandIviSurface offre un moyen simple d'identifier et de redimensionner une surface. Plus d'informations...
| En-tête : | #include <QWaylandIviSurface> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake : | QT += waylandcompositor |
| En QML : | IviSurface |
| Héritages : | QWaylandShellSurfaceTemplate |
Propriétés
Fonctions publiques
| 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 |
Signaux
| void | iviIdChanged() |
| void | surfaceChanged() |
Membres publics statiques
| QWaylandIviSurface * | fromResource(wl_resource *resource) |
| const struct wl_interface * | interface() |
| QWaylandSurfaceRole * | role() |
Description détaillée
Cette classe fait partie de l'extension QWaylandIviApplication et fournit un moyen d'étendre la fonctionnalité d'un QWaylandSurface existant avec un moyen de le redimensionner et de l'identifier.
Elle correspond à l'interface Wayland ivi_surface.
Documentation sur les propriétés
[read-only] iviId : uint
Cette propriété contient l'identifiant ivi de ce site QWaylandIviSurface.
Fonctions d'accès :
| uint | iviId() const |
Signal de notification :
| void | iviIdChanged() |
[read-only] surface : QWaylandSurface*
Cette propriété contient la surface associée à ce site QWaylandIviSurface.
Fonctions d'accès :
| QWaylandSurface * | surface() const |
Signal du notificateur :
| void | surfaceChanged() |
Fonction membre Documentation
QWaylandIviSurface::QWaylandIviSurface()
Construit une QWaylandIviSurface.
QWaylandIviSurface::QWaylandIviSurface(QWaylandIviApplication *application, QWaylandSurface *surface, uint iviId, const QWaylandResource &resource)
Construit une QWaylandIviSurface pour surface et l'initialise avec les données application, surface, iviId, et resource.
[static] QWaylandIviSurface *QWaylandIviSurface::fromResource(wl_resource *resource)
Retourne le QWaylandIviSurface correspondant au resource.
[invokable] void QWaylandIviSurface::initialize(QWaylandIviApplication *iviApplication, QWaylandSurface *surface, uint iviId, const QWaylandResource &resource)
Initialise l'objet QWaylandIviSurface, en l'associant aux objets iviApplication, surface, iviId, et resource.
Note : Cette fonction peut être invoquée via le système de méta-objets et à partir de QML. Voir Q_INVOKABLE.
[static] const struct wl_interface *QWaylandIviSurface::interface()
Retourne l'interface Wayland pour le site QWaylandIviSurface.
[static] QWaylandSurfaceRole *QWaylandIviSurface::role()
Renvoie le rôle de la surface pour le site QWaylandIviSurface.
[invokable] void QWaylandIviSurface::sendConfigure(const QSize &size)
Envoie un événement de configuration au client, lui demandant de redimensionner la surface en fonction de l'adresse size.
Remarque : cette fonction peut être invoquée via le système de méta-objets et à partir de QML. Voir 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.