]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/box.hh
Imported Upstream version 2.16.0
[lilypond.git] / lily / include / box.hh
index 55da1fb78ded0bdf58d3bef8467b120eaba21a36..af5695b3bce8f64978a623c4d16b56dea054b7a4 100644 (file)
@@ -7,27 +7,31 @@
 
 #include "interval.hh"
 #include "offset.hh"
+#include "smobs.hh"
 
 class Box
 {
   Interval interval_a_[NO_AXES];
+  DECLARE_SIMPLE_SMOBS (Box);
 public:
   Interval &x () {return interval_a_[X_AXIS]; }
-  Interval &y (){ return interval_a_[Y_AXIS]; }
-  Interval x () const{ return interval_a_[X_AXIS]; }
-  Interval y () const{return interval_a_[Y_AXIS]; }
+  Interval &y () { return interval_a_[Y_AXIS]; }
+  Interval x () const { return interval_a_[X_AXIS]; }
+  Interval y () const {return interval_a_[Y_AXIS]; }
   Interval operator [] (Axis a) const;
   Interval &operator [] (Axis a);
 
   Offset center () const;
 
   void translate (Offset o);
+
   /// smallest box enclosing #b#
   void set_empty ();
   void add_point (Offset);
   void widen (Real x, Real y);
   void scale (Real r);
   void unite (Box b);
+  void print ();
   Box ();
   Box (Interval ix, Interval iy);
 };