Represents a rectangular area on an output device. 更多...
import 语句: | import QtWayland.Compositor 1.3 |
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 |
此特性保持 WaylandSurface 's buffer scale. The buffer scale lets a client supply higher resolution buffer data for use on high resolution outputs.
client : WaylandClient |
This property holds the client using this WaylandSurface .
This property holds the orientation of the WaylandSurface 's contents.
另请参阅 WaylandOutput.transform .
cursorSurface : bool |
This property holds whether the WaylandSurface is a cursor surface.
hasContent : bool |
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:
size : size |
此特性保持 WaylandSurface 's size in pixels.
childAdded ( WaylandSurface child ) |
This signal is emitted when a wl_subsurface, child , has been added to the surface.
This signal is emitted when a drag has started from this surface.
This signal is emitted when the corresponding wl_surface is destroyed.
销毁 WaylandSurface .
void initialize ( WaylandCompositor compositor , WaylandClient client , int id , int version ) |
初始化 WaylandSurface 采用给定 compositor and client ,和采用给定 id and version .
bool isDestroyed () |
返回
true
若
WaylandSurface
has been destroyed. Otherwise returns
false
.