このページでは

QWaylandXdgSurface Class

QWaylandXdgSurface クラスは、xdg サーフェスに対してデスクトップスタイルのコンポジター固有の機能を提供します。詳細...

ヘッダー: #include <QWaylandXdgSurface>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
QML内: XdgSurface
継承元: QWaylandShellSurfaceTemplate

プロパティ

パブリック関数

QWaylandXdgSurface()
QWaylandXdgSurface(QWaylandXdgShell *xdgShell, QWaylandSurface *surface, const QWaylandResource &res)
void initialize(QWaylandXdgShell *xdgShell, QWaylandSurface *surface, const QWaylandResource &resource)
QWaylandXdgPopup *popup() const
QWaylandXdgShell *shell() const
QWaylandSurface *surface() const
QWaylandXdgToplevel *toplevel() const
QRect windowGeometry() const

シグナル

静的パブリックメンバー

QWaylandXdgSurface *fromResource(wl_resource *resource)
const struct wl_interface *interface()

詳細な説明

このクラスは、QWaylandXdgShell 拡張機能の一部であり、既存のQWaylandSurface の機能を、サーフェスのサイズ変更や移動など、デスクトップスタイルのコンポジターに特有の機能で拡張する手段を提供します。

これは、Wayland インターフェースの `xdg_surface` に対応しています。

プロパティのドキュメント

このプロパティには、ポップアップQWaylandXdgSurface に固有のプロパティとメソッドが格納されています。

アクセス関数:

QWaylandXdgPopup *popup() const

Notifierシグナル:

void popupCreated()

関連項目: QWaylandXdgSurface::toplevel およびQWaylandXdgShell::popupCreated 。

[read-only] shell : QWaylandXdgShell*

このプロパティには、このQWaylandXdgSurface に関連付けられたシェルが格納されます。

アクセス関数:

QWaylandXdgShell *shell() const

通知シグナル:

void shellChanged()

[read-only] surface : QWaylandSurface*

このプロパティには、このQWaylandXdgSurface に関連付けられたサーフェスが格納されています。

アクセス関数:

QWaylandSurface *surface() const

通知シグナル:

void surfaceChanged()

[read-only] toplevel : QWaylandXdgToplevel*

このプロパティには、最上位のQWaylandXdgSurface に固有のプロパティとメソッドが格納されています。

アクセス関数:

QWaylandXdgToplevel *toplevel() const

Notifierシグナル:

void toplevelCreated()

関連項目: ` QWaylandXdgSurface::popup ` および `QWaylandXdgShell::toplevelCreated`。

[read-only] windowGeometry : QRect

このプロパティは、QWaylandXdgSurface のウィンドウジオメトリを保持します。ウィンドウジオメトリは、ユーザーの視点から見たウィンドウの表示範囲を表します。ジオメトリには、クライアントによって描画されたタイトルバーや境界線が含まれますが、ドロップシャドウは含まれません。これは、ウィンドウの位置合わせやタイル配置に使用することを目的としています。

アクセス関数:

QRect windowGeometry() const

Notifierシグナル:

void windowGeometryChanged()

メンバ関数のドキュメント

[explicit] QWaylandXdgSurface::QWaylandXdgSurface()

QWaylandXdgSurface を生成します。

[explicit] QWaylandXdgSurface::QWaylandXdgSurface(QWaylandXdgShell *xdgShell, QWaylandSurface *surface, const QWaylandResource &res)

surface 用の QWaylandXdgSurface を生成し、指定された `xdgShell`、`surface`、およびリソース `res` を使用して初期化します。

[static] QWaylandXdgSurface *QWaylandXdgSurface::fromResource(wl_resource *resource)

resource に対応するQWaylandXdgSurface を返します。

[invokable] void QWaylandXdgSurface::initialize(QWaylandXdgShell *xdgShell, QWaylandSurface *surface, const QWaylandResource &resource)

QWaylandXdgSurface を初期化し、指定されたxdgShell 、surface 、resource と関連付けます。

注:この関数は 、メタオブジェクトシステムを介して、またはQMLから呼び出すことができます。Q_INVOKABLE を参照してください。

[static] const struct wl_interface *QWaylandXdgSurface::interface()

QWaylandXdgSurface の Wayland インターフェースを返します。

© 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.