QWaylandIviApplication 类

QWaylandIviApplication 类是嵌入式样式用户界面的扩展。 更多...

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

公共函数

QWaylandIviApplication ()
QWaylandIviApplication (QWaylandCompositor * compositor )

重实现公共函数

virtual void initialize () override

信号

void iviSurfaceCreated (QWaylandIviSurface * iviSurface )
void iviSurfaceRequested (QWaylandSurface * surface , uint iviId , const QWaylandResource & resource )

静态公共成员

const struct wl_interface * interface ()

详细描述

QWaylandIviApplication 扩展提供办法关联 QWaylandIviSurface 与常规 Waylnd 表面。使用 QWaylandIviSurface 接口,客户端可以通过给出的 ivi ID 标识自身,且合成器可以要求客户端重置尺寸。

QWaylandIviApplication 对应 Wayland ivi_application 接口。

成员函数文档编制

QWaylandIviApplication:: QWaylandIviApplication ()

构造 QWaylandIviApplication 对象。

QWaylandIviApplication:: QWaylandIviApplication ( QWaylandCompositor * compositor )

构造 QWaylandIviApplication 对象为提供的 compositor .

[override virtual] void QWaylandIviApplication:: initialize ()

重实现: QWaylandCompositorExtension::initialize ().

初始化 Shell 扩展。

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

返回 Wayland 接口为 QWaylandIviApplication .

[signal] void QWaylandIviApplication:: iviSurfaceCreated ( QWaylandIviSurface * iviSurface )

此信号发射当 IviSurface , iviSurface ,已被创建。

[signal] void QWaylandIviApplication:: iviSurfaceRequested ( QWaylandSurface * surface , uint iviId , const QWaylandResource & resource )

This signal is emitted when the client has requested an ivi_surface to be associated with surface , which is identified by iviId . The handler for this signal is expected to create the ivi surface for resource and initialize it within the scope of the signal emission. If no ivi surface is created, a default one will be created instead.