WaylandSurface QML Type
A rectangular area which is displayed on an output device. More...
Import Statement: | import QtWayland.Compositor 1.0 |
Properties
- bufferScale : size
- client : object
- contentOrientation : enum
- cursorSurface : bool
- isMapped : bool
- origin : enum
- size : size
Methods
- void destroy()
- void initialize(object compositor, object client, int id, int version)
- bool isDestroyed()
Detailed Description
This type encapsulates a rectangular area of pixels that is displayed on an output device. It corresponds to the interface wl_surface in the Wayland protocol.
Property Documentation
bufferScale : size |
This property holds the WaylandSurface's buffer scale. The buffer scale lets a client supply higher resolution buffer data for use on high resolution outputs.
This property holds the client using this QWaylandSurface.
This property holds the orientation of the WaylandSurface's contents.
See also QtWaylandCompositor::WaylandOutput::transform.
This property holds whether the WaylandSurface is a cursor surface.
This property holds whether the WaylandSurface has content.
This property holds the origin of the WaylandSurface's buffer, or WaylandSurface.OriginTopLeft if the surface has no buffer.
It can have the following values:
- WaylandSurface.OriginTopLeft The origin is the top left corner of the buffer.
- WaylandSurface.OriginBottomLeft The origin is the bottom left corner of the buffer.
size : size |
This property holds the WaylandSurface's size in pixels.
Method Documentation
Destroys the QWaylandSurface.
Initializes the QWaylandSurface with the given compositor and client, and with the given id and version.
Returns true if the WaylandSurface has been destroyed. Otherwise returns false.