Mercurial > hg > orthanc-stone
view Platforms/Wasm/WasmViewport.cpp @ 1209:b5dec783ba08
Fixed the style configurator to only set inversion on the image if it has been
explicitely asked by the user + Fixed AddCircle in the measuring toolbox +
dummy change (reindent)
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Wed, 04 Dec 2019 15:46:14 +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); }