Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwaylandpresentationtime_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 LG Electronics Inc.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QWAYLANDPRESENTATIONTIME_P_H
6#define QWAYLANDPRESENTATIONTIME_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QObject>
20#include <QtWaylandCompositor/qwaylandcompositorextension.h>
21#include <QtCore/private/qglobal_p.h>
22
23QT_BEGIN_NAMESPACE
24
25class QQuickWindow;
27
28class Q_WAYLANDCOMPOSITOR_EXPORT QWaylandPresentationTime : public QWaylandCompositorExtensionTemplate<QWaylandPresentationTime>
29{
30 Q_OBJECT
31 Q_DECLARE_PRIVATE(QWaylandPresentationTime)
32public:
33 QWaylandPresentationTime();
34 QWaylandPresentationTime(QWaylandCompositor *compositor);
35
36 QWaylandCompositor *compositor() const;
37 void initialize() override;
38
39 Q_INVOKABLE void sendFeedback(QQuickWindow *window, quint64 sequence, quint64 tv_sec, quint32 tv_nsec);
40
41 static const struct wl_interface *interface();
42 static QByteArray interfaceName();
43
44Q_SIGNALS:
45 void presented(quint64 sequence, quint64 tv_sec, quint32 tv_nsec, quint32 refresh_nsec);
46};
47
48QT_END_NAMESPACE
49
50#endif
void setSurface(QWaylandSurface *)
void wp_presentation_feedback_destroy_resource(Resource *resource) override
void wp_presentation_bind_resource(Resource *resource) override
\qmltype PresentationTime \nativetype QWaylandPresentationTime \inqmlmodule QtWayland....