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

プロパティ

  • popup : QWaylandXdgPopup* const
  • shell : QWaylandXdgShell* const
  • surface : QWaylandSurface* const

パブリック機能

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* const

このプロパティは、このQWaylandXdgSurface に関連付けられているシェルを保持する。

アクセス関数

QWaylandXdgShell *shell() const

通知シグナル:

void shellChanged()

[read-only] surface : QWaylandSurface* const

このプロパティは、このQWaylandXdgSurface に関連するサーフェスを保持します。

アクセス関数:

QWaylandSurface *surface() const

通知シグナル:

void surfaceChanged()

[read-only] toplevel : QWaylandXdgToplevel* const

このプロパティは、トップレベルQWaylandXdgSurface に固有のプロパティとメソッドを保持します。

アクセス関数:

QWaylandXdgToplevel *toplevel() const

ノーティファイア・シグナル:

void toplevelCreated()

QWaylandXdgSurface::popup およびQWaylandXdgShell::toplevelCreatedも参照のこと

[read-only] windowGeometry : const QRect

このプロパティは、QWaylandXdgSurface のウィンドウ・ジオメトリを保持する。ウィンドウ・ジオメトリは、ユーザの視点から見たウィンドウの可視境界を記述する。ジオメトリには、クライアントによって描画された場合、タイトルバーとボーダーが含まれますが、ドロップシャドウは含まれません。これは、ウィンドウの整列やタイリングに使用されます。

アクセス関数:

QRect windowGeometry() const

通知シグナル:

void windowGeometryChanged()

メンバ関数ドキュメント

[explicit] QWaylandXdgSurface::QWaylandXdgSurface()

QWaylandXdgSurface を構築します。

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

surface の QWaylandXdgSurface を構築し、与えられたxdgShellsurface 、およびリソースres で初期化する。

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

resource に対応するQWaylandXdgSurface を返す。

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

QWaylandXdgSurface を初期化し、与えられたxdgShellsurfaceresource と関連付けます。

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

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

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

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