QWaylandXdgSurface Class
La classe QWaylandXdgSurface fornisce a una superficie xdg funzionalità specifiche del compositor in stile desktop. Per saperne di più...
| Intestazione: | #include <QWaylandXdgSurface> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| In QML: | XdgSurface |
| Eredita da: | QWaylandShellSurfaceTemplate |
Proprietà
|
Funzioni pubbliche
| 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 |
Segnali
| void | popupCreated() |
| void | shellChanged() |
| void | surfaceChanged() |
| void | toplevelCreated() |
| void | windowGeometryChanged() |
Membri pubblici statici
| QWaylandXdgSurface * | fromResource(wl_resource *resource) |
| const struct wl_interface * | interface() |
Descrizione dettagliata
Questa classe fa parte dell'estensione QWaylandXdgShell e fornisce un modo per estendere le funzionalità di un compositore esistente ( QWaylandSurface ) con caratteristiche specifiche dei compositori in stile desktop, come il ridimensionamento e lo spostamento della superficie.
Corrisponde all'interfaccia Wayland xdg_surface.
Documentazione delle proprietà
[read-only] popup : QWaylandXdgPopup*
Questa proprietà contiene le proprietà e i metodi specifici del popup QWaylandXdgSurface.
Funzioni di accesso:
| QWaylandXdgPopup * | popup() const |
Segnale del notificatore:
| void | popupCreated() |
Vedi anche QWaylandXdgSurface::toplevel e QWaylandXdgShell::popupCreated.
[read-only] shell : QWaylandXdgShell*
Questa proprietà contiene lo shell associato a questo QWaylandXdgSurface.
Funzioni di accesso:
| QWaylandXdgShell * | shell() const |
Segnale di notifica:
| void | shellChanged() |
[read-only] surface : QWaylandSurface*
Questa proprietà contiene la superficie associata a questo QWaylandXdgSurface.
Funzioni di accesso:
| QWaylandSurface * | surface() const |
Segnale di notifica:
| void | surfaceChanged() |
[read-only] toplevel : QWaylandXdgToplevel*
Questa proprietà contiene le proprietà e i metodi specifici del livello superiore QWaylandXdgSurface.
Funzioni di accesso:
| QWaylandXdgToplevel * | toplevel() const |
Segnale del notificatore:
| void | toplevelCreated() |
Vedi anche QWaylandXdgSurface::popup e QWaylandXdgShell::toplevelCreated.
[read-only] windowGeometry : QRect
Questa proprietà contiene la geometria della finestra dell'QWaylandXdgSurface. La geometria della finestra descrive i confini visibili della finestra dal punto di vista dell'utente. La geometria include le barre del titolo e i bordi, se disegnati dal client, ma esclude le ombre proiettate. È pensata per essere utilizzata per allineare e affiancare le finestre.
Funzioni di accesso:
| QRect | windowGeometry() const |
Segnale del notificatore:
| void | windowGeometryChanged() |
Documentazione delle funzioni membro
[explicit] QWaylandXdgSurface::QWaylandXdgSurface()
Crea un oggetto QWaylandXdgSurface.
[explicit] QWaylandXdgSurface::QWaylandXdgSurface(QWaylandXdgShell *xdgShell, QWaylandSurface *surface, const QWaylandResource &res)
Crea un oggetto `QWaylandXdgSurface` per ` surface ` e lo inizializza con i valori specificati per ` xdgShell`, ` surface` e la risorsa ` res`.
[static] QWaylandXdgSurface *QWaylandXdgSurface::fromResource(wl_resource *resource)
Restituisce l'QWaylandXdgSurface corrispondente all'resource.
[invokable] void QWaylandXdgSurface::initialize(QWaylandXdgShell *xdgShell, QWaylandSurface *surface, const QWaylandResource &resource)
Inizializza l'QWaylandXdgSurface, associandolo ai valori specificati per xdgShell, surface e resource.
Nota: questa funzione può essere richiamata tramite il sistema dei meta-oggetti e da QML. Vedi Q_INVOKABLE.
[static] const struct wl_interface *QWaylandXdgSurface::interface()
Restituisce l'interfaccia Wayland per l'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.