// Copyright (C) 2018 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #ifndef QWASMCURSOR_H #define QWASMCURSOR_H #include class QWasmCursor : public QPlatformCursor { public: void changeCursor(QCursor *windowCursor, QWindow *window) override; QByteArray cursorShapeToHtml(Qt::CursorShape shape); static void setOverrideWasmCursor(QCursor *windowCursor, QScreen *screen); static void clearOverrideWasmCursor(QScreen *screen); private: QByteArray htmlCursorName = "default"; void setWasmCursor(QScreen *screen, const QByteArray &name); }; #endif