WaylandSurface QML Type

Represents a rectangular area on an output device. 更多...

Import Statement: import QtWayland.Compositor 1.0
开始支持版本: 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.


client : object

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.


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:

  • 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.


信号

void dragStarted(object drag)

This signal is emitted when a drag has started from this surface.


成员

void destroy()

Destroys the WaylandSurface.


void initialize(object compositor, object 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.