7#include <QtCore/qpoint.h>
8#include <QtCore/qrect.h>
9#include <QtGui/qimage.h>
10#include <private/qstdweb_p.h>
21 element[
"classList"].call<
void>(
"add", emscripten::val(std::move(cssClassName)));
25 element[
"classList"].call<
void>(
"remove", emscripten::val(std::move(cssClassName)));
30 const auto sourceBoundingRect =
31 QRectF::fromDOMRect(
source.call<emscripten::val>(
"getBoundingClientRect"));
32 const auto targetBoundingRect =
33 QRectF::fromDOMRect(
target.call<emscripten::val>(
"getBoundingClientRect"));
35 const auto offset = sourceBoundingRect.topLeft() - targetBoundingRect.topLeft();
\inmodule QtCore\reentrant
Combined button and popup list for selecting options.
void syncCSSClassWith(emscripten::val element, std::string cssClassName, bool flag)
QPointF mapPoint(emscripten::val source, emscripten::val target, const QPointF &point)
GLenum GLuint GLintptr offset
GLsizei GLsizei GLchar * source