Mercurial > hg > orthanc-stone
view Deprecated/Resources/CodeGeneration/testWasmIntegrated/DefaultLibrary.js @ 1410:b2b0fc4a5596
Added ENABLE_GUIADAPTER option + fixed include paths in GuiAdapter
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 04 May 2020 13:34:21 +0200 |
parents | f6a2d46d2b76 |
children |
line wrap: on
line source
// this file contains the JS method you want to expose to C++ code mergeInto(LibraryManager.library, { // each time the Application updates its status, it may signal it through this method. i.e, to change the status of a button in the web interface // It needs to be put in this file so that the emscripten SDK linker knows where to find it. SendFreeTextFromCppJS: function(statusUpdateMessage) { var statusUpdateMessage_ = UTF8ToString(statusUpdateMessage); window.SendFreeTextFromCpp(statusUpdateMessage_); }, SendMessageFromCppJS: function(statusUpdateMessage) { var statusUpdateMessage_ = UTF8ToString(statusUpdateMessage); window.SendMessageFromCpp(statusUpdateMessage_); } });