QWaylandPresentationTime Class

The QWaylandPresentationTime class is an extension to get timing for on-screen presentation. 更多...

頭: #include <QWaylandPresentationTime>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
Since: Qt 6.3
實例化: 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 ()

詳細描述

The QWaylandPresentationTime extension provides a way to track rendering timing for a surface. Client can request feedbacks associated with a surface, then compositor send events for the feedback with the time when the surface is presented on-screen.

QWaylandPresentationTime corresponds to the Wayland wp_presentation 接口。

成員函數文檔編製

QWaylandPresentationTime:: QWaylandPresentationTime ()

Constructs an empty QWaylandPresentationTime object.

QWaylandPresentationTime:: QWaylandPresentationTime ( QWaylandCompositor * compositor )

Constructs a QWaylandPresentationTime object for compositor .

[override virtual] void QWaylandPresentationTime:: initialize ()

重實現: QWaylandCompositorExtension::initialize ().

Initializes the extension.

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

返迴 Wayland 接口為 QWaylandPresentationTime .

[invokable] void QWaylandPresentationTime:: sendFeedback ( QQuickWindow * window , quint64 sequence , quint64 tv_sec , quint32 tv_nsec )

Interface to notify that a frame is presented on screen using window . If your platform supports DRM events, page_flip_handler is the proper timing to send it. The sequence is the refresh counter. tv_sec and tv_nsec hold the seconds and nanoseconds parts of the presentation timestamp, respectively.

注意: 此函數可以被援引,通過元對象係統和從 QML。見 Q_INVOKABLE .