QWaylandIviSurface Class
La classe QWaylandIviSurface offre un moyen simple d'identifier et de redimensionner une surface. En savoir plus...
| 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érite de : | 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 permet d'étendre les fonctionnalités d'un QWaylandSurface existant en lui ajoutant la possibilité de le redimensionner et de l'identifier.
Elle correspond à l’interface Wayland « ivi_surface ».
Documentation des propriétés
[read-only] iviId : uint
Cette propriété contient l'identifiant ivi de cette page 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 à cette QWaylandIviSurface.
Fonctions d'accès :
| QWaylandSurface * | surface() const |
Signal de notification :
| void | surfaceChanged() |
Documentation des fonctions membres
QWaylandIviSurface::QWaylandIviSurface()
Crée un objet `QWaylandIviSurface`.
QWaylandIviSurface::QWaylandIviSurface(QWaylandIviApplication *application, QWaylandSurface *surface, uint iviId, const QWaylandResource &resource)
Crée un objet `QWaylandIviSurface` pour ` surface ` et l'initialise avec les paramètres fournis : ` application`, ` surface`, ` iviId` et ` resource`.
[static] QWaylandIviSurface *QWaylandIviSurface::fromResource(wl_resource *resource)
Renvoie l'QWaylandIviSurface correspondant à l'resource.
[invokable] void QWaylandIviSurface::initialize(QWaylandIviApplication *iviApplication, QWaylandSurface *surface, uint iviId, const QWaylandResource &resource)
Initialise l'QWaylandIviSurface, en l'associant aux éléments iviApplication, surface, iviId et resource fournis.
Remarque : cette fonction peut être appelée via le système de méta-objets et depuis QML. Voir Q_INVOKABLE.
[static] const struct wl_interface *QWaylandIviSurface::interface()
Renvoie l'interface Wayland correspondant à l'QWaylandIviSurface.
[static] QWaylandSurfaceRole *QWaylandIviSurface::role()
Renvoie le rôle de surface associé à l'QWaylandIviSurface.
[invokable] void QWaylandIviSurface::sendConfigure(const QSize &size)
Envoie un événement « configure » au client, lui indiquant de redimensionner la surface selon l'size.
Remarque : cette fonction peut être appelée via le système de méta-objets et depuis 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.