QWaylandObject Class

QWaylandObjectはWayland拡張を含むことができるオブジェクトの基底クラスです。詳細...

ヘッダー #include <QWaylandObject>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
を継承する: QObject
によって継承される:

QWaylandCompositor,QWaylandCompositorExtension,QWaylandKeyboard,QWaylandOutput,QWaylandPointer,QWaylandSeat,QWaylandSurface, およびQWaylandTouch

パブリック関数

void addExtension(QWaylandCompositorExtension *extension)
QWaylandCompositorExtension *extension(const QByteArray &name)
QWaylandCompositorExtension *extension(const wl_interface *interface)
QList<QWaylandCompositorExtension *> extensions() const
void removeExtension(QWaylandCompositorExtension *extension)

保護された関数

QWaylandObject(QObject *parent = nullptr)

詳細説明

QWaylandObject は拡張コンテナの機能をカプセル化します。どの QWaylandObject オブジェクトも自動的に拡張機能コンテナになり、QWaylandCompositorExtension このオブジェクトの子オブジェクトは自動的に拡張機能リストに追加され、拡張機能オブジェクトが破棄されると削除されます。

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

[protected] QWaylandObject::QWaylandObject(QObject *parent = nullptr)

parent の子として QWaylandObject を作成します。

void QWaylandObject::addExtension(QWaylandCompositorExtension *extension)

QWaylandObjectextension を登録する。

QWaylandCompositorExtension *QWaylandObject::extension(const QByteArray &name)

QWaylandObject に登録されていれば、name にマッチするコンポジター拡張子を返します。 名前にマッチする拡張子が登録されていない場合、この関数は null を返します。

QWaylandCompositorExtension *QWaylandObject::extension(const wl_interface *interface)

QWaylandObject に登録されていれば、interface にマッチするコンポジター拡張機能を返します。 インターフェイスにマッチする拡張機能が登録されていない場合、この関数は null を返します。

QList<QWaylandCompositorExtension *> QWaylandObject::extensions() const

このQWaylandObject に登録されているコンポジター拡張機能のリストを返します。

void QWaylandObject::removeExtension(QWaylandCompositorExtension *extension)

addExtension()を使用して以前に登録されていた場合、このQWaylandObject に登録されている拡張子の一覧からextension を削除する。

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