Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/Viewport/IViewport.h @ 1576:92fca2b3ba3d
sanitizing the handling of canvas size
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 24 Sep 2020 16:40:30 +0200 |
parents | 314b6dc507d9 |
children | e8a120dd05bd |
line wrap: on
line diff
--- a/OrthancStone/Sources/Viewport/IViewport.h Wed Sep 23 17:25:25 2020 +0200 +++ b/OrthancStone/Sources/Viewport/IViewport.h Thu Sep 24 16:40:30 2020 +0200 @@ -62,6 +62,14 @@ virtual ViewportController& GetController() = 0; virtual void Invalidate() = 0; + + + /** + * This function must be called when the layout has changed, and + * thus the size of the canvas must be re-computed. Avoid + * calling this method too often for performance. + **/ + virtual void RefreshCanvasSize() = 0; }; virtual ~IViewport()