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 |
このプロパティはWaylandSurface のバッファスケールを保持する。バッファ・スケールは、クライアントが高解像度出力で使用するためにより高解像度のバッファ・データを提供することを可能にする。
bufferSize : size |
このプロパティは、このWaylandSurface の現在のバッファのサイズを、表面座標ではなくピクセルで保持します。
表面座標でのサイズについては、代わりにdestinationSize を使用してください。
destinationSize およびbufferScaleも参照してください 。
client : WaylandClient |
このプロパティは、このWaylandSurface を使用しているクライアントを保持します。
contentOrientation : enum |
このプロパティはWaylandSurface のコンテンツの向きを保持します。
cursorSurface : bool |
このプロパティは、WaylandSurface がカーソル面であるかどうかを保持する。
destinationSize : size |
このプロパティは、このWaylandSurface のサイズをサーフェス座標で保持する。
bufferScale およびbufferSizeも参照 。
hasContent : bool |
このプロパティはWaylandSurface がコンテンツを持つかどうかを保持する。
inhibitsIdle : bool |
このプロパティは、このサーフェスが、スクリーンブランキング、ロック、スクリーン保存などのコンポジターのアイドル動作を抑制するためのものであるかどうかを保持します。
IdleInhibitManagerV1も参照してください 。
isOpaque : bool |
このプロパティは、クライアントが set_opaque_region リクエストを通して報告したように、サーフェスが完全に不透明であるかどうかを保持します。
このプロパティは Qt 6.4 で導入されました。
origin : enum |
このプロパティは、WaylandSurface'のバッファの原点を保持し、サーフェスにバッファがない場合は、WaylandSurface.OriginTopLeftを保持します。
以下の値を持つことができます:
- WaylandSurface.OriginTopLeft 原点はバッファの左上隅です。
- WaylandSurface.OriginBottomLeft 原点はバッファの左下隅です。
sourceGeometry : rect |
このプロパティは、アタッチされた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
を返します。
© 2025 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.