XdgOutputManagerV1 QML Type
Provides an extension for describing outputs in a desktop oriented fashion. More...
Import Statement: | import QtWayland.Compositor.XdgShell |
Instantiates: | QWaylandXdgOutputManagerV1 |
Detailed Description
The XdgOutputManagerV1 extension provides a way for a compositor to describe outputs in a way that is more in line with the concept of an output on desktop oriented systems.
Some information may not make sense in other applications such as IVI systems.
Typically the global compositor space on a desktop system is made of a contiguous or overlapping set of rectangular regions.
XdgOutputManagerV1 corresponds to the Wayland interface, zxdg_output_manager_v1
.
To provide the functionality of the extension in a compositor, create an instance of the XdgOutputManagerV1 component and add it to the list of extensions supported by the compositor, and associated each XdgOutputV1 with its WaylandOutput:
import QtWayland.Compositor WaylandCompositor { XdgOutputManagerV1 { WaylandOutput { id: output1 position: Qt.point(0, 0) window: Window {} XdgOutputV1 { name: "WL-1" logicalPosition: output1.position logicalSize: Qt.size(output1.geometry.width / output1.scaleFactor, output1.geometry.height / output1.scaleFactor) } } WaylandOutput { id: output2 position: Qt.point(800, 0) window: Window {} XdgOutputV1 { name: "WL-2" logicalPosition: output2.position logicalSize: Qt.size(output2.geometry.width / output2.scaleFactor, output2.geometry.height / output2.scaleFactor) } } } }