Provides a shell extension for embedded-style user interfaces. 更多...
| import 語句: | import QtWayland.Compositor 1.0 |
| Since: | Qt 5.8 |
The IviApplication extension provides a way to associate an IviSurface 與常規 Waylnd 錶麵。使用 IviSurface 接口,客戶端可以通過給齣的 ivi ID 標識自身,且閤成器可以要求客戶端重置尺寸。
IviApplication
corresponds to the Wayland
ivi_application
接口。
To provide the functionality of the shell extension in a compositor, create an instance of the IviApplication component and add it to the list of extensions supported by the compositor:
import QtWayland.Compositor 1.0 WaylandCompositor { IviApplication { onIviSurfaceCreated: { if (iviSurface.iviId === navigationIviId) { // ... } } } }
|
void iviSurfaceCreated ( IviSurface * iviSurface ) |
此信號發射,當 IviSurface has been created. The supplied iviSurface is most commonly used to instantiate a ShellSurfaceItem .
|
void iviSurfaceRequested ( WaylandSurface surface , int iviId , WaylandResource resource ) |
This signal is emitted when the client has requested an
ivi_surface
to be associated with
surface
, which is identified by
id
. The handler for this signal is expected to create the ivi surface and initialize it within the scope of the signal emission. If no ivi surface is created, a default one will be created instead.