QWaylandWlShell Class

QWaylandWlShell class is an extension for desktop-style user interfaces. 更多...

头: #include <QWaylandWlShell>
qmake: QT += waylandcompositor
Since: Qt 5.8
继承: QWaylandShellTemplate

公共函数

QWaylandWlShell ()
QWaylandWlShell (QWaylandCompositor * compositor )
QList<QWaylandWlShellSurface *> mappedPopups () const
QWaylandClient * popupClient () const
QList<QWaylandWlShellSurface *> shellSurfaces () const
QList<QWaylandWlShellSurface *> shellSurfacesForClient (QWaylandClient * client ) const

重实现公共函数

virtual void initialize () override

公共槽

void closeAllPopups ()

信号

void wlShellSurfaceCreated (QWaylandWlShellSurface * shellSurface )
void wlShellSurfaceRequested (QWaylandSurface * surface , const QWaylandResource & resource )

额外继承成员

详细描述

QWaylandWlShell class is an extension for desktop-style user interfaces.

QWaylandWlShell extension provides a way to associate a QWaylandWlShellSurface with a regular Wayland surface. Using the shell surface interface, the client can request that the surface is resized, moved, and so on.

WlShell corresponds to the Wayland interface wl_shell .

成员函数文档编制

QWaylandWlShell:: QWaylandWlShell ()

构造 QWaylandWlShell 对象。

QWaylandWlShell:: QWaylandWlShell ( QWaylandCompositor * compositor )

构造 QWaylandWlShell object for the provided compositor .

[slot] void QWaylandWlShell:: closeAllPopups ()

[override virtual] void QWaylandWlShell:: initialize ()

初始化 WlShell extension.

QList < QWaylandWlShellSurface *> QWaylandWlShell:: mappedPopups () const

QWaylandClient *QWaylandWlShell:: popupClient () const

QList < QWaylandWlShellSurface *> QWaylandWlShell:: shellSurfaces () const

QList < QWaylandWlShellSurface *> QWaylandWlShell:: shellSurfacesForClient ( QWaylandClient * client ) const

[signal] void QWaylandWlShell:: wlShellSurfaceCreated ( QWaylandWlShellSurface * shellSurface )

This signal is emitted when the client has created a wl_shell_surface . A common use case is to let the handler of this signal instantiate a QWaylandShellSurfaceItem or QWaylandQuickItem for displaying shellSurface QtQuick scene.

[signal] void QWaylandWlShell:: wlShellSurfaceRequested ( QWaylandSurface * surface , const QWaylandResource & resource )

This signal is emitted when the client has requested a wl_shell_surface to be associated with surface . The handler for this signal may create a shell surface for resource and initialize it within the scope of the signal emission. Otherwise a QWaylandWlShellSurface will be created automatically.