QWaylandXdgShell Class

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

头: #include <QWaylandXdgShell>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
实例化: XdgShell
继承: QWaylandShellTemplate

公共函数

QWaylandXdgShell ()
QWaylandXdgShell (QWaylandCompositor * compositor )

重实现公共函数

virtual void initialize () override

公共槽

uint ping (QWaylandClient * client )

信号

void pong (uint serial )
void popupCreated (QWaylandXdgPopup * popup , QWaylandXdgSurface * xdgSurface )
void toplevelCreated (QWaylandXdgToplevel * toplevel , QWaylandXdgSurface * xdgSurface )
void xdgSurfaceCreated (QWaylandXdgSurface * xdgSurface )

静态公共成员

const struct wl_interface * interface ()

详细描述

The QWaylandXdgShell extension provides a way to associate a QWaylandXdgToplevel or QWaylandXdgPopup 与常规 Waylnd 表面。使用 QWaylandXdgToplevel interface, the client can request that the surface is resized, moved, and so on.

QWaylandXdgShell corresponds to the Wayland interface, xdg_shell .

成员函数文档编制

[explicit] QWaylandXdgShell:: QWaylandXdgShell ()

Constructs a QWaylandXdgShell object.

[explicit] QWaylandXdgShell:: QWaylandXdgShell ( QWaylandCompositor * compositor )

Constructs a QWaylandXdgShell object for the provided compositor .

[override virtual] void QWaylandXdgShell:: initialize ()

重实现: QWaylandCompositorExtension::initialize ().

初始化 Shell 扩展。

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

返回 Wayland 接口为 QWaylandXdgShell .

[slot] uint QWaylandXdgShell:: ping ( QWaylandClient * client )

Sends a ping event to client . If the client replies to the event the pong signal will be emitted.

[signal] void QWaylandXdgShell:: pong ( uint serial )

This signal is emitted when the client has responded to a ping event with serial, serial .

另请参阅 QWaylandXdgShell::ping ().

[signal] void QWaylandXdgShell:: popupCreated ( QWaylandXdgPopup * popup , QWaylandXdgSurface * xdgSurface )

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

xdgSurface XdgSurface popup is the role object for.

[signal] void QWaylandXdgShell:: toplevelCreated ( QWaylandXdgToplevel * toplevel , QWaylandXdgSurface * xdgSurface )

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

xdgSurface XdgSurface toplevel is the role object for.

[signal] void QWaylandXdgShell:: xdgSurfaceCreated ( QWaylandXdgSurface * xdgSurface )

This signal is emitted when the client has created a xdg_surface 。注意, xdgSurface is not mapped, i.e. according to the xdg-shell protocol it should not be displayed, until it has received a role object.

另请参阅 toplevelCreated () 和 popupCreated ().