Sur cette page

QWaylandWlShellSurface Class

La classe QWaylandWlShellSurface fournit à une surface des fonctionnalités spécifiques au compositeur de style bureau. Plus d'informations...

En-tête : #include <QWaylandWlShellSurface>
CMake : find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake : QT += waylandcompositor
En QML : WlShellSurface
Héritages : QWaylandShellSurfaceTemplate

Types publics

enum ResizeEdge { NoneEdge, TopEdge, BottomEdge, LeftEdge, TopLeftEdge, …, BottomRightEdge }

Propriétés

Fonctions publiques

QWaylandWlShellSurface()
QWaylandWlShellSurface(QWaylandWlShell *shell, QWaylandSurface *surface, const QWaylandResource &res)
QString className() const
void initialize(QWaylandWlShell *shell, QWaylandSurface *surface, const QWaylandResource &resource)
void sendConfigure(const QSize &size, QWaylandWlShellSurface::ResizeEdge edges)
void sendPopupDone()
QWaylandWlShell *shell() const
QWaylandSurface *surface() const
QString title() const

Emplacements publics

void ping()

Signaux

Membres publics statiques

QWaylandWlShellSurface *fromResource(wl_resource *resource)

Description détaillée

Cette classe fait partie de l'extension QWaylandWlShell et permet d'étendre les fonctionnalités d'un site QWaylandSurface existant avec des fonctions spécifiques aux compositeurs de bureau, telles que le redimensionnement et le déplacement de la surface.

Elle correspond à l'interface Wayland wl_shell_surface.

Type de membre Documentation

enum QWaylandWlShellSurface::ResizeEdge

Ce type d'énumération permet de spécifier un bord ou un coin de la surface.

ConstanteValeurDescription de l'arête
QWaylandWlShellSurface::NoneEdge0Pas de bord.
QWaylandWlShellSurface::TopEdge1L'arête supérieure.
QWaylandWlShellSurface::BottomEdge2Le bord inférieur.
QWaylandWlShellSurface::LeftEdge4Le bord gauche.
QWaylandWlShellSurface::TopLeftEdge5Le coin supérieur gauche.
QWaylandWlShellSurface::BottomLeftEdge6Le coin inférieur gauche.
QWaylandWlShellSurface::RightEdge8Le bord droit.
QWaylandWlShellSurface::TopRightEdge9Le coin supérieur droit.
QWaylandWlShellSurface::BottomRightEdge10Le coin inférieur droit.

Documentation sur les propriétés

[read-only] className : QString

Cette propriété contient le nom de la classe du site QWaylandWlShellSurface.

Fonctions d'accès :

QString className() const

Signal du notificateur :

void classNameChanged()

[read-only] shell : QWaylandWlShell*

Cette propriété contient le shell associé à cette QWaylandWlShellSurface.

Fonctions d'accès :

QWaylandWlShell *shell() const

Signal de notification :

void shellChanged()

[read-only] surface : QWaylandSurface*

Cette propriété contient la surface associée à ce site QWaylandWlShellSurface.

Fonctions d'accès :

QWaylandSurface *surface() const

Signal de notification :

void surfaceChanged()

[read-only] title : QString

Cette propriété détient le titre de propriété du QWaylandWlShellSurface.

Fonctions d'accès :

QString title() const

Signal du notificateur :

void titleChanged()

Documentation des fonctions membres

QWaylandWlShellSurface::QWaylandWlShellSurface()

Construit une QWaylandWlShellSurface.

QWaylandWlShellSurface::QWaylandWlShellSurface(QWaylandWlShell *shell, QWaylandSurface *surface, const QWaylandResource &res)

Construit une QWaylandWlShellSurface pour surface et l'initialise avec shell et la ressource res.

[static] QWaylandWlShellSurface *QWaylandWlShellSurface::fromResource(wl_resource *resource)

Renvoie l'objet QWaylandWlShellSurface associé à l'adresse resource donnée, ou null si cet objet n'existe pas.

[invokable] void QWaylandWlShellSurface::initialize(QWaylandWlShell *shell, QWaylandSurface *surface, const QWaylandResource &resource)

Initialise le site QWaylandWlShellSurface et l'associe aux sites shell, surface et resource.

Note : Cette fonction peut être invoquée via le système de méta-objets et à partir de QML. Voir Q_INVOKABLE.

[slot] void QWaylandWlShellSurface::ping()

Envoie un événement ping au client. Si le client répond à l'événement, le signal pong sera émis.

[invokable] void QWaylandWlShellSurface::sendConfigure(const QSize &size, QWaylandWlShellSurface::ResizeEdge edges)

Envoie un événement de configuration au client, lui suggérant de redimensionner sa surface en fonction de l'adresse size. Le site edges donne des indications sur la manière dont la surface a été redimensionnée.

Remarque : cette fonction peut être invoquée via le système de méta-objets et à partir de QML. Voir Q_INVOKABLE.

[invokable] void QWaylandWlShellSurface::sendPopupDone()

Envoie un événement popup_done au client pour indiquer que l'utilisateur a cliqué quelque part en dehors des surfaces du client.

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.