Mercurial > hg > orthanc-stone
comparison Framework/Viewport/SdlViewport.h @ 1391:32272ecfc6c2
Drilled a hole through the abstractions to be able to match
an SdlViewport with its SDL window ID to support dispatching
event loop SDL events as viewport/controller/compositor
method calls.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 28 Apr 2020 13:26:41 +0200 |
parents | be614695747d |
children |
comparison
equal
deleted
inserted
replaced
1390:57e06087d357 | 1391:32272ecfc6c2 |
---|---|
117 virtual ILock* Lock() ORTHANC_OVERRIDE | 117 virtual ILock* Lock() ORTHANC_OVERRIDE |
118 { | 118 { |
119 return new SdlLock(*this); | 119 return new SdlLock(*this); |
120 } | 120 } |
121 | 121 |
122 virtual uint32_t GetSdlWindowId() = 0; | |
123 | |
122 virtual void UpdateSize(unsigned int width, | 124 virtual void UpdateSize(unsigned int width, |
123 unsigned int height) = 0; | 125 unsigned int height) = 0; |
124 | 126 |
125 virtual void ToggleMaximize() = 0; | 127 virtual void ToggleMaximize() = 0; |
126 | 128 |
145 unsigned int height, | 147 unsigned int height, |
146 bool allowDpiScaling = true); | 148 bool allowDpiScaling = true); |
147 | 149 |
148 | 150 |
149 virtual ~SdlOpenGLViewport(); | 151 virtual ~SdlOpenGLViewport(); |
152 | |
153 virtual uint32_t GetSdlWindowId() ORTHANC_OVERRIDE; | |
150 | 154 |
151 virtual void Paint() ORTHANC_OVERRIDE; | 155 virtual void Paint() ORTHANC_OVERRIDE; |
152 | 156 |
153 virtual void UpdateSize(unsigned int width, | 157 virtual void UpdateSize(unsigned int width, |
154 unsigned int height) ORTHANC_OVERRIDE; | 158 unsigned int height) ORTHANC_OVERRIDE; |
177 bool allowDpiScaling = true); | 181 bool allowDpiScaling = true); |
178 | 182 |
179 | 183 |
180 virtual ~SdlCairoViewport(); | 184 virtual ~SdlCairoViewport(); |
181 | 185 |
186 virtual uint32_t GetSdlWindowId() ORTHANC_OVERRIDE; | |
187 | |
182 virtual void Paint() ORTHANC_OVERRIDE; | 188 virtual void Paint() ORTHANC_OVERRIDE; |
183 | 189 |
184 virtual void UpdateSize(unsigned int width, | 190 virtual void UpdateSize(unsigned int width, |
185 unsigned int height) ORTHANC_OVERRIDE; | 191 unsigned int height) ORTHANC_OVERRIDE; |
186 | 192 |