comparison 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
comparison
equal deleted inserted replaced
1576:92fca2b3ba3d 1577:e8a120dd05bd
96 WebAssemblyViewport(const std::string& canvasId, 96 WebAssemblyViewport(const std::string& canvasId,
97 bool enableEmscriptenMouseEvents); 97 bool enableEmscriptenMouseEvents);
98 98
99 void PostConstructor(); 99 void PostConstructor();
100 100
101 void RefreshCanvasSize();
102
103 unsigned int GetCanvasWidth() const
104 {
105 return canvasWidth_;
106 }
107
108 unsigned int GetCanvasHeight()
109 {
110 return canvasHeight_;
111 }
112
101 public: 113 public:
102 virtual ILock* Lock() ORTHANC_OVERRIDE; 114 virtual ILock* Lock() ORTHANC_OVERRIDE;
103 115
104 ~WebAssemblyViewport(); 116 ~WebAssemblyViewport();
105
106 virtual void UpdateCanvasSize();
107 117
108 /** 118 /**
109 This method takes ownership 119 This method takes ownership
110 */ 120 */
111 void AcquireInteractor(IViewportInteractor* interactor); 121 void AcquireInteractor(IViewportInteractor* interactor);
122 const std::string& GetCanvasCssSelector() const 132 const std::string& GetCanvasCssSelector() const
123 { 133 {
124 return canvasCssSelector_; 134 return canvasCssSelector_;
125 } 135 }
126 136
127
128 void RefreshCanvasSize();
129
130 unsigned int GetCanvasWidth() const
131 {
132 return canvasWidth_;
133 }
134
135 unsigned int GetCanvasHeight()
136 {
137 return canvasHeight_;
138 }
139
140 void FitForPrint(); // TODO - REMOVE 137 void FitForPrint(); // TODO - REMOVE
141 }; 138 };
142 } 139 }