Mercurial > hg > orthanc-stone
annotate Deprecated/Platforms/Wasm/WasmViewport.h @ 1442:11f291ac3ef5 legacy-loader-refactoring
This branch is useless.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 26 May 2020 10:11:49 +0200 |
parents | 419d0320c344 |
children | 828a9b4ee1b7 |
rev | line source |
---|---|
231
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
1 #pragma once |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
2 |
732
c35e98d22764
move Deprecated classes to a separate folder
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
726
diff
changeset
|
3 #include "../../Framework/Deprecated/Viewport/WidgetViewport.h" |
231
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
4 |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
5 #include <emscripten/emscripten.h> |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
6 |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
7 #ifdef __cplusplus |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
8 extern "C" { |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
9 #endif |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
10 |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
11 // JS methods accessible from C++ |
726
4f2416d519b4
moving layers, widgets and loaders to Deprecated namespace
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
242
diff
changeset
|
12 extern Deprecated::WidgetViewport* CreateWasmViewportFromCpp(const char* htmlCanvasId); |
231
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
13 |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
14 #ifdef __cplusplus |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
15 } |
242 | 16 #endif |
17 | |
726
4f2416d519b4
moving layers, widgets and loaders to Deprecated namespace
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
242
diff
changeset
|
18 extern void AttachWidgetToWasmViewport(const char* htmlCanvasId, Deprecated::IWidget* centralWidget); |