QWaylandShellSurfaceTemplate Class
template <typename T> class QWaylandShellSurfaceTemplateQWaylandShellSurfaceTemplate は、カスタムシェルサーフェスクラスを作成するための便利なクラスです。詳細...
ヘッダー | #include <QWaylandShellSurfaceTemplate> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
qmake: | QT += waylandcompositor |
を継承する: | QWaylandShellSurface |
によって継承される: | QWaylandIviSurface,QWaylandWlShellSurface, およびQWaylandXdgSurface |
静的パブリックメンバ
T * | findIn(QWaylandObject *container) |
詳しい説明
QWaylandShellSurfaceTemplateはQWaylandShellSurface を継承したテンプレートクラスで、カスタムシェル拡張機能を構築するのに便利です。
拡張プロトコルの XML 記述に基づき、Qt Wayland Compositor とqtwaylandscanner
によって生成されるクラスとの接続を提供します。
このクラスは2つの利便性を提供します:
- qtwaylandscanner が生成した基本クラスへの
wl_interface
ポインタを返すQWaylandCompositorExtension::extensionInterface() の再実装。 - 提供されたコンテナ内で拡張機能のインスタンスを検索し、見つかった場合にこれを返す静的なfindIn() 関数。
QWaylandCompositorExtensionTemplate と同じ使い方ができます。
Custom Shellも参照してください 。
メンバ関数のドキュメント
[static]
T *QWaylandShellSurfaceTemplate::findIn(QWaylandObject *container)
インタフェースのインスタンスがcontainer に登録されていれば、これが返される。そうでなければnullが返される。ルックアップは、生成されたinterfaceName()
、プロトコル記述のインターフェイス名にマッチするものに基づいて行われる。
© 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.