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 : const QString

このプロパティは、QWaylandWlShellSurface のクラス名を保持します。

アクセス関数:

QString className() const

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

void classNameChanged()

[read-only] shell : QWaylandWlShell* const

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

アクセス関数

QWaylandWlShell *shell() const

通知シグナル:

void shellChanged()

[read-only] surface : QWaylandSurface* const

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

アクセス関数:

QWaylandSurface *surface() const

通知シグナル:

void surfaceChanged()

[read-only] title : const QString

このプロパティは、QWaylandWlShellSurface のタイトルを保持する。

アクセス関数:

QString title() const

Notifier シグナル:

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 を初期化し、与えられたshellsurfaceresource と関連付けます。

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

[slot] void QWaylandWlShellSurface::ping()

クライアントにpingイベントを送信する。クライアントがそのイベントに返信すると、pongシグナルが発信される。

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

クライアントにconfigureイベントを送り、サーフェスのサイズを提供されたsize に変更するよう促す。edges はサーフェスがどのようにリサイズされたかのヒントを提供する。

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

[invokable] void QWaylandWlShellSurface::sendPopupDone()

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

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

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