annotate Resources/Graveyard/Deprecated/Platforms/Wasm/WasmViewport.h @ 1503:553084468225

moving /Deprecated/ to /Resources/Graveyard/Deprecated/
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Jun 2020 11:38:13 +0200
parents Deprecated/Platforms/Wasm/WasmViewport.h@828a9b4ee1b7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1458
828a9b4ee1b7 added missing copyright
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1400
diff changeset
1 /**
828a9b4ee1b7 added missing copyright
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1400
diff changeset
2 * Stone of Orthanc
828a9b4ee1b7 added missing copyright
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1400
diff changeset
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
828a9b4ee1b7 added missing copyright
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1400
diff changeset
4 * Department, University Hospital of Liege, Belgium
828a9b4ee1b7 added missing copyright
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1400
diff changeset
5 * Copyright (C) 2017-2020 Osimis S.A., Belgium
828a9b4ee1b7 added missing copyright
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1400
diff changeset
6 *
828a9b4ee1b7 added missing copyright
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1400
diff changeset
7 * This program is free software: you can redistribute it and/or
828a9b4ee1b7 added missing copyright
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1400
diff changeset
8 * modify it under the terms of the GNU Affero General Public License
828a9b4ee1b7 added missing copyright
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1400
diff changeset
9 * as published by the Free Software Foundation, either version 3 of
828a9b4ee1b7 added missing copyright
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1400
diff changeset
10 * the License, or (at your option) any later version.
828a9b4ee1b7 added missing copyright
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1400
diff changeset
11 *
828a9b4ee1b7 added missing copyright
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1400
diff changeset
12 * This program is distributed in the hope that it will be useful, but
828a9b4ee1b7 added missing copyright
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1400
diff changeset
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
828a9b4ee1b7 added missing copyright
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1400
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
828a9b4ee1b7 added missing copyright
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1400
diff changeset
15 * Affero General Public License for more details.
828a9b4ee1b7 added missing copyright
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1400
diff changeset
16 *
828a9b4ee1b7 added missing copyright
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1400
diff changeset
17 * You should have received a copy of the GNU Affero General Public License
828a9b4ee1b7 added missing copyright
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1400
diff changeset
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
828a9b4ee1b7 added missing copyright
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1400
diff changeset
19 **/
828a9b4ee1b7 added missing copyright
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1400
diff changeset
20
828a9b4ee1b7 added missing copyright
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1400
diff changeset
21
231
5027cb2feb51 viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff changeset
22 #pragma once
5027cb2feb51 viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff changeset
23
732
c35e98d22764 move Deprecated classes to a separate folder
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 726
diff changeset
24 #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
25
5027cb2feb51 viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff changeset
26 #include <emscripten/emscripten.h>
5027cb2feb51 viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff changeset
27
5027cb2feb51 viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff changeset
28 #ifdef __cplusplus
5027cb2feb51 viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff changeset
29 extern "C" {
5027cb2feb51 viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff changeset
30 #endif
5027cb2feb51 viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff changeset
31
5027cb2feb51 viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff changeset
32 // 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
33 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
34
5027cb2feb51 viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff changeset
35 #ifdef __cplusplus
5027cb2feb51 viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff changeset
36 }
242
092db46c6291 improved SDL/Wasm unification
am@osimis.io
parents: 236
diff changeset
37 #endif
092db46c6291 improved SDL/Wasm unification
am@osimis.io
parents: 236
diff changeset
38
726
4f2416d519b4 moving layers, widgets and loaders to Deprecated namespace
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 242
diff changeset
39 extern void AttachWidgetToWasmViewport(const char* htmlCanvasId, Deprecated::IWidget* centralWidget);