Represents a rectangular area on an output device. More...
| Import Statement: | import QtWayland.Compositor 1.13 |
| Since: | Qt 5.8 |
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.
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.
bufferSize : size
This property holds the size of the current buffer of this WaylandSurface in pixels, not in surface coordinates.
For the size in surface coordinates, use destinationSize instead.
See also destinationSize and bufferScale.
client : WaylandClient
This property holds the client using this WaylandSurface.
contentOrientation : enum
This property holds the orientation of the WaylandSurface's contents.
See also WaylandOutput.transform.
cursorSurface : bool
This property holds whether the WaylandSurface is a cursor surface.
destinationSize : size
This property holds the size of this WaylandSurface in surface coordinates.
This property was introduced in Qt 5.13.
See also bufferScale and bufferSize.
hasContent : bool
This property holds whether the WaylandSurface has content.
origin : enum
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:
sourceGeometry : rect
This property describes the portion of the attached Wayland buffer that should be drawn on the screen. The coordinates are from the corner of the buffer and are scaled by bufferScale.
This property was introduced in Qt 5.13.
See also bufferScale, bufferSize, and destinationSize.
useTextureAlpha : bool
This property specifies whether the surface should use texture alpha.
childAdded(child)
This signal is emitted when a wl_subsurface, child, has been added to the surface.
void dragStarted(drag)
This signal is emitted when a drag has started from this surface.
surfaceDestroyed()
This signal is emitted when the corresponding wl_surface is destroyed.
void destroy()
Destroys the WaylandSurface.
void initialize(compositor, WaylandClient client, int id, int version)
Initializes the WaylandSurface with the given compositor and client, and with the given id and version.
bool isDestroyed()
Returns true if the WaylandSurface has been destroyed. Otherwise returns false.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.13/qml-qtwayland-compositor-waylandsurface.html