QWaylandIviSurface Class

QWaylandIviSurface 类提供了一种识别和调整曲面大小的简单方法。更多

Header: #include <QWaylandIviSurface>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
在 QML 中: 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

信号

静态公共成员

QWaylandIviSurface *fromResource(wl_resource *resource)
const struct wl_interface *interface()
QWaylandSurfaceRole *role()

详细说明

该类是QWaylandIviApplication 扩展的一部分,为扩展现有QWaylandSurface 的功能提供了一种调整大小和识别的方法。

它与 Waylandivi_surface 接口相对应。

属性文档

[read-only] iviId : const uint

此属性保存此QWaylandIviSurface 的 ivi id。

访问功能:

uint iviId() const

通知者信号:

void iviIdChanged()

[read-only] surface : QWaylandSurface* const

此属性保存与此QWaylandIviSurface 相关的曲面。

访问功能:

QWaylandSurface *surface() const

Notifier 信号:

void surfaceChanged()

成员函数文档

QWaylandIviSurface::QWaylandIviSurface()

构造一个 QWaylandIviSurface。

QWaylandIviSurface::QWaylandIviSurface(QWaylandIviApplication *application, QWaylandSurface *surface, uint iviId, const QWaylandResource &resource)

surface 构建 QWaylandIviSurface,并使用给定的application,surface,iviIdresource 对其进行初始化。

[static] QWaylandIviSurface *QWaylandIviSurface::fromResource(wl_resource *resource)

返回与resource 对应的QWaylandIviSurface

[invokable] void QWaylandIviSurface::initialize(QWaylandIviApplication *iviApplication, QWaylandSurface *surface, uint iviId, const QWaylandResource &resource)

初始化QWaylandIviSurface ,将其与给定的iviApplication,surface,iviIdresource 关联。

注: 可通过元对象系统和 QML 调用该函数。请参见Q_INVOKABLE

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

返回QWaylandIviSurface 的 Wayland 界面。

[static] QWaylandSurfaceRole *QWaylandIviSurface::role()

返回QWaylandIviSurface 的表面作用。

[invokable] void QWaylandIviSurface::sendConfigure(const QSize &size)

向客户端发送一个 configure 事件,告诉它按给定的size 调整曲面的大小。

注: 可通过元对象系统和 QML 调用此函数。请参阅Q_INVOKABLE

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.