The QWaylandXdgSurface class provides desktop-style compositor-specific features to an xdg surface. More...
Header: | #include <QWaylandXdgSurface> |
qmake: | QT += waylandcompositor |
Since: | Qt 5.12 |
Inherits: | QWaylandShellSurfaceTemplate |
This class was introduced in Qt 5.12.
|
QWaylandXdgSurface(QWaylandXdgShell *xdgShell, QWaylandSurface *surface, const QWaylandResource &res) | |
QWaylandXdgSurface() | |
void | initialize(QWaylandXdgShell *xdgShell, QWaylandSurface *surface, const QWaylandResource &resource) |
QWaylandXdgPopup * | popup() const |
QWaylandXdgShell * | shell() const |
QWaylandSurface * | surface() const |
QWaylandXdgToplevel * | toplevel() const |
QRect | windowGeometry() const |
void | popupCreated() |
void | shellChanged() |
void | surfaceChanged() |
void | toplevelCreated() |
void | windowGeometryChanged() |
QWaylandXdgSurface * | fromResource(::wl_resource *resource) |
const struct wl_interface * | interface() |
This class is part of the QWaylandXdgShell extension and provides a way to extend the functionality of an existing QWaylandSurface with features specific to desktop-style compositors, such as resizing and moving the surface.
It corresponds to the Wayland interface xdg_surface
.
This property holds the properties and methods that are specific to the popup QWaylandXdgSurface.
Access functions:
QWaylandXdgPopup * | popup() const |
Notifier signal:
void | popupCreated() |
See also QWaylandXdgSurface::toplevel and QWaylandXdgShell::popupCreated.
This property holds the shell associated with this QWaylandXdgSurface.
Access functions:
QWaylandXdgShell * | shell() const |
Notifier signal:
void | shellChanged() |
This property holds the surface associated with this QWaylandXdgSurface.
Access functions:
QWaylandSurface * | surface() const |
Notifier signal:
void | surfaceChanged() |
This property holds the properties and methods that are specific to the toplevel QWaylandXdgSurface.
Access functions:
QWaylandXdgToplevel * | toplevel() const |
Notifier signal:
void | toplevelCreated() |
See also QWaylandXdgSurface::popup and QWaylandXdgShell::toplevelCreated.
This property holds the window geometry of the QWaylandXdgSurface. The window geometry describes the window's visible bounds from the user's perspective. The geometry includes title bars and borders if drawn by the client, but excludes drop shadows. It is meant to be used for aligning and tiling windows.
Access functions:
QRect | windowGeometry() const |
Notifier signal:
void | windowGeometryChanged() |
Constructs a QWaylandXdgSurface for surface and initializes it with the given xdgShell, surface, and resource res.
Constructs a QWaylandXdgSurface.
[static]
QWaylandXdgSurface *QWaylandXdgSurface::fromResource(::wl_resource *resource)
Returns the QWaylandXdgSurface corresponding to the resource.
Initializes the QWaylandXdgSurface, associating it with the given xdgShell, surface and resource.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[static]
const struct wl_interface *QWaylandXdgSurface::interface()
Returns the Wayland interface for the QWaylandXdgSurface.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.15/qwaylandxdgsurface.html