QWaylandPresentationTime Class

QWaylandPresentationTime 클래스는 화면 프레젠테이션의 타이밍을 얻기 위한 확장입니다. 더 보기...

Header: #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은 Wayland wp_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 에 대한 웨이랜드 인터페이스를 반환합니다.

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

window 을 사용하여 프레임이 화면에 표시되었음을 알리는 인터페이스입니다. 플랫폼에서 DRM 이벤트를 지원하는 경우 page_flip_handler 이 적절한 전송 타이밍입니다. sequence 은 새로 고침 카운터입니다. tv_sectv_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.