QWaylandIviSurface 类
QWaylandIviSurface 类提供了一个简单的方法来标识和调整大小一个表面。更多...
| 头文件 | #include <QWaylandIviSurface> |
| CMake | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake | QT += waylandcompositor |
| 由以下类实例化 | IviSurface |
| 继承自 | QWaylandShellSurfaceTemplate |
属性
公共函数
| QWaylandIviSurface() | |
| QWaylandIviSurface(QWaylandIviApplication *application, QWaylandSurface *surface, uint iviId, const QWaylandResource &resource) | |
| void | initialize(QWaylandIviApplication *iviApplication, QWaylandSurface *surface, uint iviId, const QWaylandResource &resource) |
| uint | iviId() const |
| void | sendConfigure(const QSize &size) |
| QWaylandSurface * | surface() const |
信号
| void | iviIdChanged() |
| void | surfaceChanged() |
静态公共成员
| QWaylandIviSurface * | fromResource(wl_resource *resource) |
| const struct wl_interface * | interface() |
| QWaylandSurfaceRole * | role() |
详细描述
此类是 QWaylandIviApplication 扩展的一部分,并提供了通过调整大小和识别现有 QWaylandSurface 来扩展其功能的方法。
它对应于 Wayland 的 ivi_surface 接口。
属性文档
[只读] iviId : const uint
此属性包含该 QWaylandIviSurface 的 ivi id。
访问函数
| uint | iviId() const |
通知信号
| void | iviIdChanged() |
[只读] surface : QWaylandSurface* const
此属性包含与此 QWaylandIviSurface 关联的表面。
访问函数
| QWaylandSurface * | surface() const |
通知信号
| void | surfaceChanged() |
成员函数文档
QWaylandIviSurface::QWaylandIviSurface()
构建一个QWaylandIviSurface。
QWaylandIviSurface::QWaylandIviSurface(QWaylandIviApplication *application, QWaylandSurface *surface, uint iviId, const QWaylandResource &resource)
为surface构建一个QWaylandIviSurface,并使用给定的application、surface、iviId和resource进行初始化。
[静态] QWaylandIviSurface *QWaylandIviSurface::fromResource(wl_resource *resource)
返回与resource对应的QWaylandIviSurface。
[可调用] void QWaylandIviSurface::initialize(QWaylandIviApplication *iviApplication, QWaylandSurface *surface, uint iviId, const QWaylandResource &resource)
初始化QWaylandIviSurface,将其与给定的iviApplication、surface、iviId和resource相关联。
注意:此函数可以通过元对象系统从QML调用。有关详细信息,请参阅Q_INVOKABLE。
[静态] const struct wl_interface *QWaylandIviSurface::interface()
返回QWaylandIviSurface的Wayland接口。
[静态] QWaylandSurfaceRole *QWaylandIviSurface::role()
返回QWaylandIviSurface的表面角色。
[可调用] void QWaylandIviSurface::sendConfigure(const QSize &size)
向客户端发送配置事件,通知它将表面大小调整为给定的size。
注意:此函数可以通过元对象系统从QML调用。有关详细信息,请参阅Q_INVOKABLE。
© 2024 The Qt Company Ltd. 本文件中包含的文档贡献归其所有者所有版权。在此提供的文档是根据自由软件基金会发布的GNU自由文档许可协议版本1.3许可的。Qt及其标志是The Qt Company Ltd.在芬兰和/或其他国家的商标。所有其他商标均为各自所有者的财产。