The QWaylandIviSurface class provides a simple way to identify and resize a surface. More...
Header: | #include <QWaylandIviSurface> |
CMake: | find_package(Qt6 COMPONENTS Waylandcompositor REQUIRED) target_link_libraries(mytarget PRIVATE Qt6::Waylandcompositor) |
qmake: | QT += waylandcompositor |
Since: | Qt 5.8 |
Instantiated By: | IviSurface |
Inherits: | QWaylandShellSurfaceTemplate |
QWaylandIviSurface(QWaylandIviApplication *application, QWaylandSurface *surface, uint iviId, const QWaylandResource &resource) | |
QWaylandIviSurface() | |
void | initialize(QWaylandIviApplication *iviApplication, QWaylandSurface *surface, uint iviId, const QWaylandResource &resource) |
uint | iviId() const |
void | sendConfigure(const QSize &size) |
QWaylandSurface * | surface() const |
void | iviIdChanged() |
void | surfaceChanged() |
QWaylandIviSurface * | fromResource(::wl_resource *resource) |
const struct wl_interface * | interface() |
QWaylandSurfaceRole * | role() |
This class is part of the QWaylandIviApplication extension and provides a way to extend the functionality of an existing QWaylandSurface with a way to resize and identify it.
It corresponds to the Wayland ivi_surface
interface.
[read-only]
iviId : const uint
This property holds the ivi id of this QWaylandIviSurface.
Access functions:
uint | iviId() const |
Notifier signal:
void | iviIdChanged() |
[read-only]
surface : QWaylandSurface* const
This property holds the surface associated with this QWaylandIviSurface.
Access functions:
QWaylandSurface * | surface() const |
Notifier signal:
void | surfaceChanged() |
Constructs a QWaylandIviSurface for surface and initializes it with the given application, surface, iviId, and resource.
Constructs a QWaylandIviSurface.
[static]
QWaylandIviSurface *QWaylandIviSurface::fromResource(::wl_resource *resource)
Returns the QWaylandIviSurface corresponding to the resource.
[invokable]
void QWaylandIviSurface::initialize(QWaylandIviApplication *iviApplication, QWaylandSurface *surface, uint iviId, const QWaylandResource &resource)
Initializes the QWaylandIviSurface, associating it with the given iviApplication, surface, iviId, and resource.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[static]
const struct wl_interface *QWaylandIviSurface::interface()
Returns the Wayland interface for the QWaylandIviSurface.
[static]
QWaylandSurfaceRole *QWaylandIviSurface::role()
Returns the surface role for the QWaylandIviSurface.
[invokable]
void QWaylandIviSurface::sendConfigure(const QSize &size)
Sends a configure event to the client, telling it to resize the surface to the given size.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qwaylandivisurface.html