]> git.mxchange.org Git - simgear.git/blobdiff - simgear/canvas/layout/LayoutItem.cxx
canvas::Text: add heightForWidth method.
[simgear.git] / simgear / canvas / layout / LayoutItem.cxx
index 3ebeeddc6109f1d8a9677cc7e62ba9bdfa042cff..1dfc07d935a9e872455101c57c98c9774172139c 100644 (file)
@@ -78,6 +78,24 @@ namespace canvas
     return _max_size;
   }
 
+  //----------------------------------------------------------------------------
+  bool LayoutItem::hasHeightForWidth() const
+  {
+    return false;
+  }
+
+  //----------------------------------------------------------------------------
+  int LayoutItem::heightForWidth(int w) const
+  {
+    return -1;
+  }
+
+  //------------------------------------------------------------------------------
+  int LayoutItem::minimumHeightForWidth(int w) const
+  {
+    return heightForWidth(w);
+  }
+
   //----------------------------------------------------------------------------
   void LayoutItem::invalidate()
   {