QWaylandSurface Class▲
-
Header: QWaylandSurface
-
Since: Qt 5.8
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS Waylandcompositor)
target_link_libraries(mytarget PRIVATE Qt6::Waylandcompositor)
-
qmake: QT += waylandcompositor
-
Inherited By:
-
Instantiated By: qml-qtwayland-compositor-waylandsurface.xml
Detailed Description▲
This class encapsulates a rectangular area of pixels that is displayed on an output device. It corresponds to the interface wl_surface in the Wayland protocol.
Member Type Documentation▲
enum QWaylandSurface::Origin▲
This enum type is used to specify the origin of a QWaylandSurface's buffer.
Constant |
Value |
Description |
---|---|---|
QWaylandSurface::OriginTopLeft |
0 |
The origin is the top left corner of the buffer. |
QWaylandSurface::OriginBottomLeft |
1 |
The origin is the bottom left corner of the buffer. |
Property Documentation▲
[read-only] bufferScale : const int▲
This property holds the QWaylandSurface's buffer scale. The buffer scale lets a client supply higher resolution buffer data for use on high resolution outputs.
Access functions:
-
int bufferScale() const
Notifier signal:
-
void bufferScaleChanged()
[read-only] bufferSize : const QSize▲
This property holds the size of the current buffer of this QWaylandSurface in pixels, not in surface coordinates.
For the size in surface coordinates, use destinationSize instead.
Access functions:
-
bufferSize() const
Notifier signal:
-
void bufferSizeChanged()
See Also▲
See also destinationSize, bufferScale
[read-only] client : QWaylandClient* const▲
[read-only] contentOrientation : const Qt::ScreenOrientation▲
This property holds the orientation of the QWaylandSurface's contents.
Access functions:
-
contentOrientation() const
Notifier signal:
-
void contentOrientationChanged()