このページでは

QWaylandWlShellSurface Class

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

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

パブリック型

enum ResizeEdge { NoneEdge, TopEdge, BottomEdge, LeftEdge, TopLeftEdge, …, BottomRightEdge }

プロパティ

パブリック関数

QWaylandWlShellSurface()
QWaylandWlShellSurface(QWaylandWlShell *shell, QWaylandSurface *surface, const QWaylandResource &res)
QString className() const
void initialize(QWaylandWlShell *shell, QWaylandSurface *surface, const QWaylandResource &resource)
void sendConfigure(const QSize &size, QWaylandWlShellSurface::ResizeEdge edges)
void sendPopupDone()
QWaylandWlShell *shell() const
QWaylandSurface *surface() const
QString title() const

パブリックスロット

void ping()

シグナル

静的パブリックメンバー

QWaylandWlShellSurface *fromResource(wl_resource *resource)

詳細な説明

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

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

メンバ型のドキュメント

enum QWaylandWlShellSurface::ResizeEdge

この列挙型は、サーフェスのエッジやコーナーを指定するための手段を提供します。

定数値説明
QWaylandWlShellSurface::NoneEdge0エッジなし。
QWaylandWlShellSurface::TopEdge1エッジなし。上端。
QWaylandWlShellSurface::BottomEdge2下端。
QWaylandWlShellSurface::LeftEdge4左端。
QWaylandWlShellSurface::TopLeftEdge5左上の角。
QWaylandWlShellSurface::BottomLeftEdge6左下の角。
QWaylandWlShellSurface::RightEdge8右端。
QWaylandWlShellSurface::TopRightEdge9右上の角。
QWaylandWlShellSurface::BottomRightEdge10右下の角。

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

[read-only] className : QString

このプロパティには、QWaylandWlShellSurface のクラス名が格納されます。

アクセス関数:

QString className() const

Notifierシグナル:

void classNameChanged()

[read-only] shell : QWaylandWlShell*

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

アクセス関数:

QWaylandWlShell *shell() const

通知シグナル:

void shellChanged()

[read-only] surface : QWaylandSurface*

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

アクセス関数:

QWaylandSurface *surface() const

通知シグナル:

void surfaceChanged()

[read-only] title : QString

この物件は、「QWaylandWlShellSurface 」の称号を保持しています。

アクセス機能:

QString title() const

通知信号:

void titleChanged()

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

QWaylandWlShellSurface::QWaylandWlShellSurface()

QWaylandWlShellSurface を作成します。

QWaylandWlShellSurface::QWaylandWlShellSurface(QWaylandWlShell *shell, QWaylandSurface *surface, const QWaylandResource &res)

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

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

指定された `resource` に関連付けられた `QWaylandWlShellSurface ` オブジェクトを返します。そのようなオブジェクトが存在しない場合は `null` を返します。

[invokable] void QWaylandWlShellSurface::initialize(QWaylandWlShell *shell, QWaylandSurface *surface, const QWaylandResource &resource)

QWaylandWlShellSurface を初期化し、指定されたshell 、surface 、およびresource と関連付けます。

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

[slot] void QWaylandWlShellSurface::ping()

クライアントにpingイベントを送信します。クライアントがこのイベントに応答すると、pongシグナルが発信されます。

[invokable] void QWaylandWlShellSurface::sendConfigure(const QSize &size, QWaylandWlShellSurface::ResizeEdge edges)

クライアントに設定イベントを送信し、指定されたsize に合わせてサーフェスのサイズを変更するよう提案します。edges は、サーフェスがどのようにサイズ変更されたかについてのヒントを提供します。

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

[invokable] void QWaylandWlShellSurface::sendPopupDone()

ユーザーがクライアントのサーフェス外のどこかをクリックしたことを示すために、クライアントに popup_done イベントを送信します。

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

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