The QWaylandXdgShellV5 class is an extension for desktop-style user interfaces. 更多...
头: | #include <QWaylandXdgShellV5> |
qmake: | QT += waylandcompositor |
Since: | Qt 5.8 |
继承: | QWaylandShellTemplate |
该类已过时。 提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。
该类在 Qt 5.8 引入。
QWaylandXdgShellV5 (QWaylandCompositor * compositor ) | |
QWaylandXdgShellV5 () |
virtual void | initialize () override |
uint | ping (QWaylandClient * client ) |
void | pong (uint serial ) |
void | xdgPopupCreated (QWaylandXdgPopupV5 * xdgPopup ) |
void | xdgPopupRequested (QWaylandSurface * surface , QWaylandSurface * parent , QWaylandSeat * seat , const QPoint & position , const QWaylandResource & resource ) |
void | xdgSurfaceCreated (QWaylandXdgSurfaceV5 * xdgSurface ) |
void | xdgSurfaceRequested (QWaylandSurface * surface , const QWaylandResource & resource ) |
const struct wl_interface * | interface () |
The QWaylandXdgShellV5 extension provides a way to associate a QWaylandXdgSurfaceV5 with a regular Wayland surface. Using the xdg_surface interface, the client can request that the surface is resized, moved, and so on.
QWaylandXdgShellV5 corresponds to the Wayland interface
xdg_shell
.
Constructs a QWaylandXdgShellV5 object for the provided compositor .
Constructs a QWaylandXdgShellV5 object.
[slot]
uint
QWaylandXdgShellV5::
ping
(
QWaylandClient
*
client
)
Sends a ping event to the client . If the client replies to the event, the pong signal will be emitted.
[signal]
void
QWaylandXdgShellV5::
pong
(
uint
serial
)
This signal is emitted when the client has responded to a ping event with serial serial .
另请参阅 QWaylandXdgShellV5::ping ().
[signal]
void
QWaylandXdgShellV5::
xdgPopupCreated
(
QWaylandXdgPopupV5
*
xdgPopup
)
This signal is emitted when the client has created an
xdg_popup
. A common use case is to let the handler of this signal instantiate a QWaylandShellSurfaceItem or
QWaylandQuickItem
for displaying
xdgPopup
在
QtQuick
scene.
[signal]
void
QWaylandXdgShellV5::
xdgPopupRequested
(
QWaylandSurface
*
surface
,
QWaylandSurface
*
parent
,
QWaylandSeat
*
seat
, const
QPoint
&
position
, const
QWaylandResource
&
resource
)
This signal is emitted when the client has requested an
xdg_surface
to be associated with
surface
. The handler for this signal may create the xdg poup for
resource
and initialize it within the scope of the signal emission. Otherwise a QWaylandXdgPopupV5 will be created automatically.
The
seat
是
wl_seat
that caused the popup to be opened.
position is the desired position of the popup, relative to the parent .
[signal]
void
QWaylandXdgShellV5::
xdgSurfaceCreated
(
QWaylandXdgSurfaceV5
*
xdgSurface
)
This signal is emitted when the client has created an
xdg_surface
. A common use case is to let the handler of this signal instantiate a QWaylandShellSurfaceItem or
QWaylandQuickItem
for displaying
xdgSurface
在
QtQuick
scene.
[signal]
void
QWaylandXdgShellV5::
xdgSurfaceRequested
(
QWaylandSurface
*
surface
, const
QWaylandResource
&
resource
)
This signal is emitted when the client has requested an
xdg_surface
to be associated with
surface
. The handler for this signal may create the shell surface for
resource
and initialize it within the scope of the signal emission. Otherwise a QWaylandXdgSurfaceV5 will be created automatically.
[override virtual]
void
QWaylandXdgShellV5::
initialize
()
初始化 Shell 扩展。
[static]
const
struct
wl_interface
*QWaylandXdgShellV5::
interface
()
返回 Wayland 接口为 QWaylandXdgShellV5 .