]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/box.cc
*** empty log message ***
[lilypond.git] / lily / box.cc
index c678caf76b40e978b31d0c6d10e1a3136161aa38..97bbbb905bb9c6018b684152231c9e0e35dc56fb 100644 (file)
@@ -3,11 +3,12 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1996--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1996--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 #include "box.hh"
 #include "array.hh"
+#include "axes.hh"
 
 void
 Box::translate (Offset o)
@@ -72,6 +73,12 @@ Box::add_point (Offset o)
 Offset
 Box::center () const
 {
-  return Offset (interval_a_[X_AXIS].center(),
-                interval_a_[Y_AXIS].center()); 
+  return Offset (interval_a_[X_AXIS].center (),
+                interval_a_[Y_AXIS].center ()); 
+}
+void
+Box::widen (Real x, Real y)
+{
+  interval_a_[X_AXIS].widen (x);
+  interval_a_[Y_AXIS].widen (y);
 }