WaylandQuickItem QML Type
WaylandView を表すQt Quick アイテムを提供する。
Import Statement: | import QtWayland.Compositor |
In C++: | QWaylandQuickItem |
Inherited By: |
プロパティ
- bufferLocked : bool
- compositor : WaylandCompositor
- focusOnClick : bool
- origin : enum
- output : WaylandOutput
- paintEnabled : bool
- subsurfaceHandler : object
- surface : WaylandSurface
- touchEventsEnabled : bool
信号
- void surfaceDestroyed()
方法
- point mapFromSurface(point point)
- point mapToSurface(point point)
- setPrimary()
詳細説明
Qt Quick-ベースのWaylandコンポジターはこの型を使用して、クライアントのコンテンツを出力デバイスに表示することができる。これはユーザー入力をクライアントに渡す。
プロパティ説明
bufferLocked : bool |
このプロパティは、アイテムのバッファが現在ロックされているかどうかを保持する。バッファがロックされている限り、解放されてクライアントに返されることはありません。
デフォルトは false です。
compositor : WaylandCompositor |
このプロパティは、このWaylandQuickItem によってレンダリングされるサーフェスのコンポジターを保持します。
focusOnClick : bool |
このプロパティは、WaylandQuickItem がクリックまたはタッチされたときにフォーカスを取るかどうかを指定します。
デフォルトはtrue
です。
origin : enum |
このプロパティは、QWaylandQuickItem の原点を保持します。
output : WaylandOutput |
このプロパティは、このアイテムが表示される出力を保持する。
paintEnabled : bool |
アイテムが非表示の場合、テクスチャは更新されますが、true を返します。visible をfalse
に設定してアイテムを非表示にするのとは対照的に、このプロパティをfalse
に設定しても、マウスやキーボード入力がアイテムに到達することは妨げられません。
subsurfaceHandler : object |
このプロパティは、デフォルトのサブサーフェス動作をオーバーライドする方法を提供します。
デフォルトでは、Qt はこのアイテムの子として新しい SurfaceItem を作成し、正しい位置を維持します。
デフォルトをオーバーライドするには、このプロパティにハンドラオブジェクトを割り当てます。ハンドラは、handleSubsurfaceAdded(WaylandSurface) 関数を実装する必要があります。
ShellSurfaceItem { subsurfaceHandler: QtObject { function handleSubsurfaceAdded(child) { // create custom surface item, and connect the subsurfacePositionChanged signal } } }
このプロパティのデフォルト値はnull
です。
surface : WaylandSurface |
このプロパティは、このWaylandQuickItem によってレンダリングされるサーフェスを保持します。
touchEventsEnabled : bool |
このプロパティは、タッチイベントがクライアントサーフェスに転送される場合はtrue
を保持し、そうでない場合はfalse
を保持する。
シグナルの説明
void surfaceDestroyed() |
このシグナルは、クライアントがWaylandQuickItem に関連付けられているwl_surface
を破棄したときに発行されます。このシグナルのハンドラは、WaylandQuickItem を直ちに破棄するか、閉じるアニメーションを開始してから Item を破棄することが期待されます。
アニメーションが開始された場合、アニメーションが終了するまでアイテムのコンテンツが保持されるように、bufferLocked 。
注: 対応するハンドラはonSurfaceDestroyed
です。
bufferLockedも参照してください 。
メソッドの説明
Wayland サーフェスの座標系で指定されたpoint を、このアイテムの座標系で等価な点にマップし、マップされた座標を返します。
setPrimary() |
このWaylandQuickItem をサーフェスのプライマリビューにします。
© 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.