WaylandSurface QML Type
出力デバイス上の矩形領域を表します。詳細...
| Import Statement: | import QtWayland.Compositor |
| In C++: | QWaylandSurface |
プロパティ
- bufferScale : size
- bufferSize : size
- client : WaylandClient
- contentOrientation : enum
- cursorSurface : bool
- destinationSize : size
- hasContent : bool
- inhibitsIdle : bool
- isOpaque : bool
(since 6.4) - origin : enum
- sourceGeometry : rect
- useTextureAlpha : bool
信号
- childAdded(WaylandSurface child)
- void dragStarted(WaylandDrag drag)
- surfaceDestroyed()
方法
- void destroy()
- void initialize(WaylandCompositor compositor, WaylandClient client, int id, int version)
- bool isDestroyed()
詳細説明
この型は、出力デバイスに表示されるピクセルの矩形領域をカプセル化する。Waylandプロトコルのインターフェースwl_surface に対応する。
プロパティの説明
bufferScale : size [read-only]
このプロパティはWaylandSurface のバッファースケールを保持する。バッファースケールにより、クライアントは高解像度出力で使用するためにより高解像度のバッファデータを提供することができます。
bufferSize : size [read-only]
このプロパティは、このWaylandSurface の現在のバッファのサイズを、サーフェス座標ではなくピクセルで保持する。
表面座標でのサイズについては、代わりにdestinationSize を使用してください。
destinationSize およびbufferScaleも参照してください 。
client : WaylandClient [read-only]
このプロパティは、このWaylandSurface を使用しているクライアントを保持する。
contentOrientation : enum [read-only]
このプロパティはWaylandSurface の内容の向きを保持する。
cursorSurface : bool
このプロパティは、WaylandSurface がカーソル面であるかどうかを保持する。
destinationSize : size [read-only]
このプロパティは、このWaylandSurface のサイズをサーフェス座標で保持する。
bufferScale およびbufferSizeも参照 。
hasContent : bool [read-only]
このプロパティは、WaylandSurface にコンテンツがあるかどうかを保持する。
inhibitsIdle : bool [read-only]
このプロパティは、このサーフェスが、スクリーンブランキング、ロック、スクリーン保存などのコンポジターのアイドル動作を抑制することを意図しているかどうかを保持する。
IdleInhibitManagerV1も参照してください 。
isOpaque : bool [read-only, since 6.4]
このプロパティは、set_opaque_regionリクエストを通してクライアントから報告された、サーフェスが完全に不透明であるかどうかを保持します。
このプロパティは Qt 6.4 で導入されました。
origin : enum [read-only]
このプロパティは、WaylandSurface'のバッファの原点を保持します。サーフェスにバッファがない場合は、WaylandSurface.OriginTopLeft。
以下の値を持つことができます:
- WaylandSurface.OriginTopLeft 原点はバッファの左上隅です。
- WaylandSurface.OriginBottomLeft 原点はバッファの左下隅です。
sourceGeometry : rect [read-only]
このプロパティは、アタッチされた Wayland バッファのうち、画面に描画されるべき部分を記述します。座標はバッファのコーナーからのもので、bufferScale によってスケーリングされます。
bufferScale,bufferSize,destinationSizeも参照して ください。
useTextureAlpha : bool
このプロパティは、サーフェスがテクスチャアルファを使用するかどうかを指定する。
シグナルの説明
childAdded(WaylandSurface child)
このシグナルは、wl_subsurface(child )がサーフェスに追加されたときに発行される。
注: 対応するハンドラはonChildAdded 。
void dragStarted(WaylandDrag drag)
このシグナルは、このサーフェスからdrag 。
注: 対応するハンドラはonDragStarted 。
surfaceDestroyed()
このシグナルは、対応するwl_surfaceが破壊されたときに発せられる。
注意: 対応するハンドラはonSurfaceDestroyed です。
メソッドのドキュメント
void destroy()
WaylandSurface を破壊する。
void initialize(WaylandCompositor compositor, WaylandClient client, int id, int version)
与えられたcompositor とclient でWaylandSurface を初期化し、与えられたid とversion で初期化する。
bool isDestroyed()
WaylandSurface が破壊された場合はtrue を返す。そうでない場合はfalse を返す。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.