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 ().