Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/Viewport/WebAssemblyViewport.h @ 1577:e8a120dd05bd
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 24 Sep 2020 16:51:14 +0200 |
parents | 92fca2b3ba3d |
children | 1f812f4c95be |
line wrap: on
line diff
--- a/OrthancStone/Sources/Viewport/WebAssemblyViewport.h Thu Sep 24 16:40:30 2020 +0200 +++ b/OrthancStone/Sources/Viewport/WebAssemblyViewport.h Thu Sep 24 16:51:14 2020 +0200 @@ -98,13 +98,23 @@ void PostConstructor(); + void RefreshCanvasSize(); + + unsigned int GetCanvasWidth() const + { + return canvasWidth_; + } + + unsigned int GetCanvasHeight() + { + return canvasHeight_; + } + public: virtual ILock* Lock() ORTHANC_OVERRIDE; ~WebAssemblyViewport(); - virtual void UpdateCanvasSize(); - /** This method takes ownership */ @@ -124,19 +134,6 @@ return canvasCssSelector_; } - - void RefreshCanvasSize(); - - unsigned int GetCanvasWidth() const - { - return canvasWidth_; - } - - unsigned int GetCanvasHeight() - { - return canvasHeight_; - } - void FitForPrint(); // TODO - REMOVE }; }