Represents a rectangular area on an output device. 更多...
import 语句: | import QtWayland.Compositor |
实例化: | QWaylandSurface |
(从 6.4 起)
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.
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 代替。
另请参阅 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.
另请参阅 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.
另请参阅 bufferScale and bufferSize .
hasContent
:
bool
|
This property holds whether the WaylandSurface has content.
inhibitsIdle
:
bool
|
This property holds whether this surface is intended to inhibit the idle behavior of the compositor such as screen blanking, locking and screen saving.
另请参阅 IdleInhibitManagerV1 .
isOpaque
:
bool
|
This property holds whether the surface is fully opaque, as reported by the client through the set_opaque_region request.
该特性在 Qt 6.4 引入。
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 .
另请参阅 bufferScale , bufferSize ,和 destinationSize .
useTextureAlpha : bool |
This property specifies whether the surface should use texture alpha.
childAdded ( WaylandSurface child ) |
This signal is emitted when a wl_subsurface, child , has been added to the surface.
注意:
相应处理程序是
onChildAdded
.
void dragStarted ( WaylandDrag drag ) |
This signal is emitted when a drag has started from this surface.
注意:
相应处理程序是
onDragStarted
.
surfaceDestroyed () |
This signal is emitted when the corresponding wl_surface is destroyed.
注意:
相应处理程序是
onSurfaceDestroyed
.
void destroy () |
销毁 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
.