QWaylandWlShell Class
QWaylandWlShell クラスは、デスクトップスタイルのユーザーインターフェイス用の拡張です。さらに...
ヘッダー | #include <QWaylandWlShell> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
qmake | QT += waylandcompositor |
QML で | WlShell |
を継承しています: | QWaylandShellTemplate |
パブリック関数
QWaylandWlShell() | |
QWaylandWlShell(QWaylandCompositor *compositor) |
再実装パブリック関数
virtual void | initialize() override |
シグナル
void | wlShellSurfaceCreated(QWaylandWlShellSurface *shellSurface) |
void | wlShellSurfaceRequested(QWaylandSurface *surface, const QWaylandResource &resource) |
静的パブリック・メンバー
const struct wl_interface * | interface() |
詳しい説明
QWaylandWlShell拡張はQWaylandWlShellSurface 、通常のWaylandサーフェスと関連付ける方法を提供します。シェルサーフェスインターフェースを使用することで、クライアントはサーフェスのサイズ変更や移動などを要求することができます。
WlShell はWaylandインターフェース に対応しています。wl_shell
メンバ関数ドキュメント
QWaylandWlShell::QWaylandWlShell()
QWaylandWlShell オブジェクトを構築します。
QWaylandWlShell::QWaylandWlShell(QWaylandCompositor *compositor)
指定されたcompositor に対応する QWaylandWlShell オブジェクトを構築します。
[override virtual]
void QWaylandWlShell::initialize()
再インプリメント:QWaylandCompositorExtension::initialize().
WlShell 拡張モジュールを初期化します。
[static]
const struct wl_interface *QWaylandWlShell::interface()
QWaylandWlShell の Wayland インタフェースを返します。
[signal]
void QWaylandWlShell::wlShellSurfaceCreated(QWaylandWlShellSurface *shellSurface)
このシグナルは、クライアントがwl_shell_surface
を作成したときに発行されます。一般的な使用例としては、このシグナルのハンドラにQWaylandShellSurfaceItemまたはQWaylandQuickItem をインスタンス化させ、QtQuick のシーンでshellSurface を表示させることです。
[signal]
void QWaylandWlShell::wlShellSurfaceRequested(QWaylandSurface *surface, const QWaylandResource &resource)
このシグナルは、クライアントがsurface に関連付けるwl_shell_surface
を要求したときに発せられる。このシグナルのハンドラは、resource のシェルサーフェスを作成し、シグナルの発行範囲内で初期化することができる。そうでない場合は、QWaylandWlShellSurface が自動的に作成される。
© 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.