view Platforms/Wasm/WasmViewport.cpp @ 1218:6f3f1ef347a3 broker

fix OneGesturePointerTracker if mouse release is outside the canvas
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 06 Dec 2019 17:05:57 +0100
parents 4f2416d519b4
children
line wrap: on
line source

#include "WasmViewport.h"

#include <vector>
#include <memory>

std::vector<std::shared_ptr<Deprecated::WidgetViewport>> wasmViewports;

void AttachWidgetToWasmViewport(const char* htmlCanvasId, Deprecated::IWidget* centralWidget) {
    std::shared_ptr<Deprecated::WidgetViewport> viewport(CreateWasmViewportFromCpp(htmlCanvasId));
    viewport->SetCentralWidget(centralWidget);

    wasmViewports.push_back(viewport);
}