QWaylandPresentationTime Class
QWaylandPresentationTime クラスは、画面上のプレゼンテーションのタイミングを取得するための拡張です。詳細...
ヘッダー | #include <QWaylandPresentationTime> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
qmake: | QT += waylandcompositor |
以来: | Qt 6.3 |
QML で | PresentationTime |
継承: | QWaylandCompositorExtensionTemplate |
パブリック関数
QWaylandPresentationTime() | |
QWaylandPresentationTime(QWaylandCompositor *compositor) | |
void | sendFeedback(QQuickWindow *window, quint64 sequence, quint64 tv_sec, quint32 tv_nsec) |
再実装パブリック関数
virtual void | initialize() override |
静的パブリックメンバ
const struct wl_interface * | interface() |
詳細な説明
QWaylandPresentationTimeエクステンションは、サーフェスのレンダリングタイミングを追跡する方法を提供します。クライアントはサーフェスに関連するフィードバックを要求することができ、コンポジターはサーフェスがスクリーン上に表示された時間をフィードバックにイベントを送信します。
QWaylandPresentationTimeはWaylandwp_presentation
インターフェースに対応しています。
メンバー関数ドキュメント
QWaylandPresentationTime::QWaylandPresentationTime()
空の QWaylandPresentationTime オブジェクトを構築します。
QWaylandPresentationTime::QWaylandPresentationTime(QWaylandCompositor *compositor)
compositor の QWaylandPresentationTime オブジェクトを構築します。
[override virtual]
void QWaylandPresentationTime::initialize()
再インプリメント:QWaylandCompositorExtension::initialize().
拡張機能を初期化します。
[static]
const struct wl_interface *QWaylandPresentationTime::interface()
QWaylandPresentationTime の Wayland インタフェースを返します。
[invokable]
void QWaylandPresentationTime::sendFeedback(QQuickWindow *window, quint64 sequence, quint64 tv_sec, quint32 tv_nsec)
window を使って、画面にフレームが表示されたことを通知するインターフェース。プラットフォームがDRMイベントをサポートしている場合、page_flip_handler
が適切なタイミングで送信される。sequence はリフレッシュ・カウンターです。tv_sec とtv_nsec は、それぞれプレゼンテーション・タイムスタンプの秒とナノ秒の部分を保持します。
注: この関数はメタオブジェクトシステムや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.