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
vsync.h
Go to the documentation of this file.
1// Copyright (C) 2025 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QARKUI__VSYNC_H
5#define QARKUI__VSYNC_H
6
7#include <QtCore/qglobal.h>
8#include <functional>
9#include <native_window/external_window.h>
10
11QT_BEGIN_NAMESPACE
12
13namespace QArkUi {
14
15std::function<void()> makeVSyncFrameRequester(
16 ::OHNativeWindow *nativeWindow, std::function<void()> vsyncFrameReadyFunc);
17
18}
19
20QT_END_NAMESPACE
21
22#endif
std::function< void()> makeVSyncFrameRequester(::OHNativeWindow *nativeWindow, std::function< void()> vsyncFrameReadyFunc)
Definition vsync.cpp:157
std::size_t operator()(const VsyncId &vsyncId) const noexcept
Definition vsync.cpp:165
QtOhos::TypedId< std::uintptr_t, struct VsyncIdTag > VsyncId
Definition vsync.cpp:19