11 const auto offscreenCanvasClass = emscripten::val::global(
"OffscreenCanvas");
13 if (!offscreenCanvasClass)
19 m_specialTargetId = std::string(
"!qtoffscreen_") + std::to_string(uintptr_t(
this));
21 emscripten::val::module_property(
"specialHTMLTargets")
22 .set(m_specialTargetId, m_offscreenCanvas);
27 emscripten::val::module_property(
"specialHTMLTargets").delete_(m_specialTargetId);
QSize size() const override
Returns the size of the offscreen surface.
constexpr int height() const noexcept
Returns the height.
constexpr int width() const noexcept
Returns the width.
~QWasmOffscreenSurface() final
QWasmOffscreenSurface(QOffscreenSurface *offscreenSurface)
Combined button and popup list for selecting options.