comparison 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
comparison
equal deleted inserted replaced
1575:e4a52cbbdd70 1576:92fca2b3ba3d
60 the lock. 60 the lock.
61 */ 61 */
62 virtual ViewportController& GetController() = 0; 62 virtual ViewportController& GetController() = 0;
63 63
64 virtual void Invalidate() = 0; 64 virtual void Invalidate() = 0;
65
66
67 /**
68 * This function must be called when the layout has changed, and
69 * thus the size of the canvas must be re-computed. Avoid
70 * calling this method too often for performance.
71 **/
72 virtual void RefreshCanvasSize() = 0;
65 }; 73 };
66 74
67 virtual ~IViewport() 75 virtual ~IViewport()
68 { 76 {
69 } 77 }