]> 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 740ccd1a97034d29bf9661ccfbf87353698a4255..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.
        */