11#include <qpa/qplatformscreen.h>
13#include <QtCore/qscopedpointer.h>
14#include <QtCore/qtextstream.h>
15#include <QtCore/private/qstdweb_p.h>
17#include <emscripten/val.h>
32 QWasmScreen(
const emscripten::val &containerOrCanvas);
38 emscripten::val
element()
const;
49 int depth()
const override;
89 static const
char *m_canvasResizeObserverCallbackContextPropertyName;
90 std::unique_ptr<
qstdweb::EventCallback> m_onContextMenu;
Format
The following image formats are available in Qt.
QObject * parent() const
Returns a pointer to the parent object.
The QPlatformOpenGLContext class provides an abstraction for native GL contexts.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QPointingDevice class describes a device from which mouse, touch or tablet events originate.
\inmodule QtCore\reentrant
The QScreen class is used to query screen properties. \inmodule QtGui.
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QWasmScreen * get(QPlatformScreen *screen)
QString name() const override
void installCanvasResizeObserver()
emscripten::val element() const
QPointF mapFromLocal(const QPointF &p) const
QWindow * topLevelAt(const QPoint &p) const override
Return the given top level window for a given position.
void setGeometry(const QRect &rect)
QPointF clipPoint(const QPointF &p) const
QWasmCompositor * compositor()
void updateQScreenAndCanvasRenderSize()
QPlatformCursor * cursor() const override
Reimplement this function in subclass to return the cursor of the screen.
QImage::Format format() const override
Reimplement in subclass to return the image format which corresponds to the screen format.
QWasmWindowTreeNode * parentNode() final
qreal devicePixelRatio() const override
Reimplement this function in subclass to return the device pixel ratio for the screen.
void resizeMaximizedWindows()
void onSubtreeChanged(QWasmWindowTreeNodeChangeType changeType, QWasmWindowTreeNode *parent, QWasmWindow *child) final
QString eventTargetId() const
QPointingDevice * touchDevice()
QString outerScreenId() const
int depth() const override
Reimplement in subclass to return current depth of the screen.
QWindow * topWindow() const
QDpi logicalDpi() const override
Reimplement this function in subclass to return the logical horizontal and vertical dots per inch met...
QWasmDeadKeySupport * deadKeySupport()
static void canvasResizeObserverCallback(emscripten::val entries, emscripten::val)
emscripten::val containerElement() final
QList< QWasmWindow * > allWindows()
QRect geometry() const override
Reimplement in subclass to return the pixel geometry of the screen.
Combined button and popup list for selecting options.
QPair< qreal, qreal > QDpi
QWasmWindowTreeNodeChangeType