Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwasmoffscreensurface.h
Go to the documentation of this file.
1// Copyright (C) 2019 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QWASMOFFSCREENSURFACE_H
5#define QWASMOFFSCREENSURFACE_H
6
7#include <qpa/qplatformoffscreensurface.h>
8
9#include <emscripten/val.h>
10
11#include <string>
12
14
17{
18public:
21
22 const std::string &id() const { return m_specialTargetId; }
23 bool isValid() const override;
24
25private:
26 std::string m_specialTargetId;
27 emscripten::val m_offscreenCanvas;
28};
29
31
32#endif
\inmodule QtGui
QOffscreenSurface * offscreenSurface() const
bool isValid() const override
Returns true if the platform offscreen surface has been allocated.
const std::string & id() const
QWasmOffscreenSurface(QOffscreenSurface *offscreenSurface)
Combined button and popup list for selecting options.