Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qwasmdom.h
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QWASMDOM_H
5#define QWASMDOM_H
6
7#include <QtCore/qtconfigmacros.h>
8
9#include <emscripten/val.h>
10
11#include <functional>
12#include <memory>
13#include <string>
14
16
17class QPoint;
18
19namespace dom {
20inline emscripten::val document()
21{
22 return emscripten::val::global("document");
23}
24
25void syncCSSClassWith(emscripten::val element, std::string cssClassName, bool flag);
26
27QPointF mapPoint(emscripten::val source, emscripten::val target, const QPointF &point);
28} // namespace dom
29
31#endif // QWASMDOM_H
\inmodule QtCore\reentrant
Definition qpoint.h:214
\inmodule QtCore\reentrant
Definition qpoint.h:23
Combined button and popup list for selecting options.
void syncCSSClassWith(emscripten::val element, std::string cssClassName, bool flag)
Definition qwasmdom.cpp:18
QPointF mapPoint(emscripten::val source, emscripten::val target, const QPointF &point)
Definition qwasmdom.cpp:28
emscripten::val document()
Definition qwasmdom.h:20
GLenum target
GLsizei GLsizei GLchar * source