QWaylandIviSurface Class

The QWaylandIviSurface class provides a simple way to identify and resize a surface. 更多...

頭: #include <QWaylandIviSurface>
qmake: QT += waylandcompositor
Since: Qt 5.8
實例化: IviSurface
繼承: QWaylandShellSurfaceTemplate

該類在 Qt 5.8 引入。

特性

公共函數

QWaylandIviSurface (QWaylandIviApplication * application , QWaylandSurface * surface , uint iviId , const QWaylandResource & resource )
QWaylandIviSurface ()
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 extension and provides a way to extend the functionality of an existing QWaylandSurface with a way to resize and identify it.

It corresponds to the Wayland ivi_surface 接口。

特性文檔編製

iviId : const uint

This property holds the ivi id of this QWaylandIviSurface .

訪問函數:

uint iviId () const

通知程序信號:

void iviIdChanged ()

surface : QWaylandSurface * const

This property holds the surface associated with this QWaylandIviSurface .

訪問函數:

QWaylandSurface * surface () const

通知程序信號:

void surfaceChanged ()

成員函數文檔編製

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

Constructs a QWaylandIviSurface for surface and initializes it with the given application , surface , iviId ,和 resource .

QWaylandIviSurface:: QWaylandIviSurface ()

Constructs a QWaylandIviSurface.

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

返迴 QWaylandIviSurface corresponding to the resource .

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

初始化 QWaylandIviSurface , associating it with the given iviApplication , surface , iviId ,和 resource .

注意: 此函數可以被援引,通過元對象係統和從 QML。見 Q_INVOKABLE .

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

返迴 Wayland 接口為 QWaylandIviSurface .

[static] QWaylandSurfaceRole *QWaylandIviSurface:: role ()

Returns the surface role for the QWaylandIviSurface .

void QWaylandIviSurface:: sendConfigure (const QSize & size )

Sends a configure event to the client, telling it to resize the surface to the given size .

注意: 此函數可以被援引,通過元對象係統和從 QML。見 Q_INVOKABLE .