]> git.mxchange.org Git - simgear.git/blobdiff - simgear/canvas/layout/LayoutItem.hxx
canvas::Text: add heightForWidth method.
[simgear.git] / simgear / canvas / layout / LayoutItem.hxx
index 18e56b9284aa5394a7645d0b1390a0690997eec7..810c1a553e3f789320ac8ae624e248c50593a52c 100644 (file)
@@ -43,6 +43,8 @@ namespace canvas
   {
     public:
 
+      static const SGVec2i MAX_SIZE;
+
       LayoutItem();
       virtual ~LayoutItem();
 
@@ -61,6 +63,10 @@ namespace canvas
        */
       SGVec2i maximumSize() const;
 
+      virtual bool hasHeightForWidth() const;
+      virtual int heightForWidth(int w) const;
+      virtual int minimumHeightForWidth(int w) const;
+
       /**
        * Mark all cached data as invalid and require it to be recalculated.
        */
@@ -93,7 +99,7 @@ namespace canvas
       CanvasPtr getCanvas() const;
 
       /**
-       * Set the parent layout item (usally this is a layout).
+       * Set the parent layout item (usually this is a layout).
        */
       void setParent(const LayoutItemWeakRef& parent);