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)
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);
}