]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/box.hh
Merge branch 'issue4032'
[lilypond.git] / lily / include / box.hh
index baa4ce0b7645791bd993f0a3b204d3f0a9c8f8e1..685fbcff75a61fe3912134c75dfeaf4e23581df9 100644 (file)
@@ -15,11 +15,14 @@ class Box
   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);
+  Real area () const;
+  bool is_empty () const;
+  bool is_empty (Axis a) const;
 
   Offset center () const;
 
@@ -31,8 +34,11 @@ public:
   void widen (Real x, Real y);
   void scale (Real r);
   void unite (Box b);
+  void intersect (Box b);
+  void print ();
   Box ();
   Box (Interval ix, Interval iy);
 };
 
+
 #endif