diff Framework/Scene2DViewport/ViewportController.h @ 721:af0aa0c149fa

FitContent is now wrapped by the controller (for observability)
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 20 May 2019 12:49:29 +0200
parents 059e1fd05fd6
children 28b9e3a54200
line wrap: on
line diff
--- a/Framework/Scene2DViewport/ViewportController.h	Mon May 20 12:37:30 2019 +0200
+++ b/Framework/Scene2DViewport/ViewportController.h	Mon May 20 12:49:29 2019 +0200
@@ -78,6 +78,8 @@
     /** Forwarded to the underlying scene, and broadcasted to the observers */
     void SetSceneToCanvasTransform(const AffineTransform2D& transform);
 
+    /** Forwarded to the underlying scene, and broadcasted to the observers */
+    void FitContent(unsigned int canvasWidth, unsigned int canvasHeight);
 
   private:
     Scene2DPtr                scene_;