QWaylandXdgSurfaceV6 Class

The QWaylandXdgSurfaceV6 class provides desktop-style compositor-specific features to an xdg surface. 更多...

头: #include <QWaylandXdgSurfaceV6>
qmake: QT += waylandcompositor
Since: Qt 5.10
继承: QWaylandShellSurfaceTemplate

该类已过时。 提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

该类在 Qt 5.10 引入。

特性

公共函数

QWaylandXdgSurfaceV6 (QWaylandXdgShellV6 * xdgShell , QWaylandSurface * surface , const QWaylandResource & res )
QWaylandXdgSurfaceV6 ()
void initialize (QWaylandXdgShellV6 * xdgShell , QWaylandSurface * surface , const QWaylandResource & resource )
QWaylandXdgPopupV6 * popup () const
QWaylandXdgShellV6 * shell () const
QWaylandSurface * surface () const
QWaylandXdgToplevelV6 * toplevel () const
QRect windowGeometry () const

信号

void popupCreated ()
void shellChanged ()
void surfaceChanged ()
void toplevelCreated ()
void windowGeometryChanged ()

静态公共成员

QWaylandXdgSurfaceV6 * fromResource (::wl_resource * resource )
const struct wl_interface * interface ()

详细描述

此类属于 QWaylandXdgShellV6 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 zxdg_surface_v6 .

特性文档编制

This property holds the properties and methods that are specific to the popup QWaylandXdgSurfaceV6 .

访问函数:

QWaylandXdgPopupV6 * popup () const

通知程序信号:

void popupCreated ()

另请参阅 QWaylandXdgSurfaceV6::toplevel and QWaylandXdgShellV6::popupCreated .

shell : QWaylandXdgShellV6 * const

This property holds the shell associated with this QWaylandXdgSurfaceV6 .

访问函数:

QWaylandXdgShellV6 * shell () const

通知程序信号:

void shellChanged ()

surface : QWaylandSurface * const

This property holds the surface associated with this QWaylandXdgSurfaceV6 .

访问函数:

QWaylandSurface * surface () const

通知程序信号:

void surfaceChanged ()

toplevel : QWaylandXdgToplevelV6 * const

This property holds the properties and methods that are specific to the toplevel QWaylandXdgSurfaceV6 .

访问函数:

QWaylandXdgToplevelV6 * toplevel () const

通知程序信号:

void toplevelCreated ()

另请参阅 QWaylandXdgSurfaceV6::popup and QWaylandXdgShellV6::toplevelCreated .

windowGeometry : const QRect

This property holds the window geometry of the QWaylandXdgSurfaceV6 . 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.

访问函数:

QRect windowGeometry () const

通知程序信号:

void windowGeometryChanged ()

成员函数文档编制

QWaylandXdgSurfaceV6:: QWaylandXdgSurfaceV6 ( QWaylandXdgShellV6 * xdgShell , QWaylandSurface * surface , const QWaylandResource & res )

Constructs a QWaylandXdgSurfaceV6 for surface and initializes it with the given xdgShell , surface , and resource res .

QWaylandXdgSurfaceV6:: QWaylandXdgSurfaceV6 ()

Constructs a QWaylandXdgSurfaceV6.

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

返回 QWaylandXdgSurfaceV6 corresponding to the resource .

void QWaylandXdgSurfaceV6:: initialize ( QWaylandXdgShellV6 * xdgShell , QWaylandSurface * surface , const QWaylandResource & resource )

初始化 QWaylandXdgSurfaceV6 , associating it with the given xdgShell , surface and resource .

注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .

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

返回 Wayland 接口为 QWaylandXdgSurfaceV6 .