Auf dieser Seite

QWaylandXdgSurface Class

Die Klasse „QWaylandXdgSurface“ stellt einer Xdg-Oberfläche Compositor-spezifische Funktionen im Desktop-Stil zur Verfügung. Mehr...

Header: #include <QWaylandXdgSurface>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
In QML: XdgSurface
Erbt von: QWaylandShellSurfaceTemplate

Eigenschaften

Öffentliche Funktionen

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

Signale

Statische öffentliche Mitglieder

QWaylandXdgSurface *fromResource(wl_resource *resource)
const struct wl_interface *interface()

Ausführliche Beschreibung

Diese Klasse ist Teil der Erweiterung „ QWaylandXdgShell “ und bietet die Möglichkeit, die Funktionalität einer bestehenden „ QWaylandSurface “ um Funktionen zu erweitern, die für Compositoren im Desktop-Stil spezifisch sind, wie beispielsweise das Ändern der Größe und das Verschieben der Oberfläche.

Sie entspricht der Wayland-Schnittstelle „ xdg_surface “.

Dokumentation der Eigenschaften

Diese Eigenschaft enthält die für das Popup spezifischen Eigenschaften und Methoden QWaylandXdgSurface.

Zugriffsfunktionen:

QWaylandXdgPopup *popup() const

Notifier-Signal:

void popupCreated()

Siehe auch „ QWaylandXdgSurface::toplevel “ und „ QWaylandXdgShell::popupCreated “.

[read-only] shell : QWaylandXdgShell*

Diese Eigenschaft enthält die Shell, die diesem QWaylandXdgSurface zugeordnet ist.

Zugriffsfunktionen:

QWaylandXdgShell *shell() const

Benachrichtigungssignal:

void shellChanged()

[read-only] surface : QWaylandSurface*

Diese Eigenschaft enthält die Oberfläche, die diesem „ QWaylandXdgSurface “ zugeordnet ist.

Zugriffsfunktionen:

QWaylandSurface *surface() const

Benachrichtigungssignal:

void surfaceChanged()

[read-only] toplevel : QWaylandXdgToplevel*

Diese Eigenschaft enthält die Eigenschaften und Methoden, die spezifisch für die oberste Ebene „ QWaylandXdgSurface “ sind.

Zugriffsfunktionen:

QWaylandXdgToplevel *toplevel() const

Notifier-Signal:

void toplevelCreated()

Siehe auch „ QWaylandXdgSurface::popup “ und „ QWaylandXdgShell::toplevelCreated “.

[read-only] windowGeometry : QRect

Diese Eigenschaft enthält die Fenstergeometrie des „ QWaylandXdgSurface “. Die Fenstergeometrie beschreibt die sichtbaren Begrenzungen des Fensters aus der Perspektive des Benutzers. Die Geometrie umfasst Titelleisten und Rahmen, sofern diese vom Client gezeichnet werden, schließt jedoch Schlagschatten aus. Sie ist für die Ausrichtung und Anordnung von Fenstern vorgesehen.

Zugriffsfunktionen:

QRect windowGeometry() const

Notifier-Signal:

void windowGeometryChanged()

Dokumentation der Member-Funktionen

[explicit] QWaylandXdgSurface::QWaylandXdgSurface()

Erstellt ein `QWaylandXdgSurface`-Objekt.

[explicit] QWaylandXdgSurface::QWaylandXdgSurface(QWaylandXdgShell *xdgShell, QWaylandSurface *surface, const QWaylandResource &res)

Erstellt ein `QWaylandXdgSurface` für ` surface ` und initialisiert es mit den angegebenen Werten für ` xdgShell`, ` surface` und der Ressource ` res`.

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

Gibt die „ QWaylandXdgSurface “ zurück, die dem „ resource “ entspricht.

[invokable] void QWaylandXdgSurface::initialize(QWaylandXdgShell *xdgShell, QWaylandSurface *surface, const QWaylandResource &resource)

Initialisiert das „ QWaylandXdgSurface “ und ordnet ihm die angegebenen „ xdgShell “, „ surface “ und „ resource “ zu.

Hinweis: Diese Funktion kann über das Metaobjektsystem und aus QML aufgerufen werden. Siehe Q_INVOKABLE.

[static] const struct wl_interface *QWaylandXdgSurface::interface()

Gibt die Wayland-Schnittstelle für die „ QWaylandXdgSurface “ zurück.

© 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.