QWaylandIviSurface Class

Die Klasse QWaylandIviSurface bietet eine einfache Möglichkeit, eine Oberfläche zu identifizieren und ihre Größe zu ändern. Mehr...

Kopfzeile: #include <QWaylandIviSurface>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
In QML: IviSurface
Vererbt: QWaylandShellSurfaceTemplate

Eigenschaften

Öffentliche Funktionen

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

Signale

Statische öffentliche Mitglieder

QWaylandIviSurface *fromResource(wl_resource *resource)
const struct wl_interface *interface()
QWaylandSurfaceRole *role()

Detaillierte Beschreibung

Diese Klasse ist Teil der QWaylandIviApplication -Erweiterung und bietet eine Möglichkeit, die Funktionalität einer bestehenden QWaylandSurface um eine Möglichkeit zur Größenänderung und Identifizierung zu erweitern.

Sie entspricht der Wayland ivi_surface Schnittstelle.

Dokumentation der Eigenschaften

[read-only] iviId : const uint

Diese Eigenschaft enthält die ivi-ID dieser QWaylandIviSurface.

Zugriffsfunktionen:

uint iviId() const

Benachrichtigungssignal:

void iviIdChanged()

[read-only] surface : QWaylandSurface* const

Diese Eigenschaft enthält die mit dieser QWaylandIviSurface verbundene Fläche.

Zugriffsfunktionen:

QWaylandSurface *surface() const

Melder-Signal:

void surfaceChanged()

Mitgliederfunktion Dokumentation

QWaylandIviSurface::QWaylandIviSurface()

Konstruiert eine QWaylandIviSurface.

QWaylandIviSurface::QWaylandIviSurface(QWaylandIviApplication *application, QWaylandSurface *surface, uint iviId, const QWaylandResource &resource)

Konstruiert eine QWaylandIviSurface für surface und initialisiert sie mit den angegebenen application, surface, iviId und resource.

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

Gibt die QWaylandIviSurface zurück, die der resource entspricht.

[invokable] void QWaylandIviSurface::initialize(QWaylandIviApplication *iviApplication, QWaylandSurface *surface, uint iviId, const QWaylandResource &resource)

Initialisiert QWaylandIviSurface und verknüpft es mit den angegebenen iviApplication, surface, iviId und resource.

Hinweis: Diese Funktion kann über das Meta-Objektsystem und von QML aus aufgerufen werden. Siehe Q_INVOKABLE.

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

Gibt die Wayland-Schnittstelle für die QWaylandIviSurface zurück.

[static] QWaylandSurfaceRole *QWaylandIviSurface::role()

Gibt die Oberflächenrolle für die QWaylandIviSurface zurück.

[invokable] void QWaylandIviSurface::sendConfigure(const QSize &size)

Sendet ein configure-Ereignis an den Client, das ihn anweist, die Größe der Oberfläche an die angegebene size anzupassen.

Hinweis: Diese Funktion kann über das Meta-Objektsystem und von QML aus aufgerufen werden. Siehe Q_INVOKABLE.

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