X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fbox.hh;h=63224f2f880debeb58567524dfb7dac51e1ae6a4;hb=aefc5a4057a0a61f1d7e4411cc1c5061d9aea6b7;hp=f08dea2ca294f92a0783a8931dc8d3554e731f42;hpb=f93e4199873c91ae32f0e84a610d14853dc379df;p=lilypond.git diff --git a/lily/include/box.hh b/lily/include/box.hh index f08dea2ca2..63224f2f88 100644 --- a/lily/include/box.hh +++ b/lily/include/box.hh @@ -20,6 +20,8 @@ public: Interval y () const {return interval_a_[Y_AXIS]; } Interval operator [] (Axis a) const; Interval &operator [] (Axis a); + Real area () const; + bool is_empty () const; Offset center () const; @@ -31,8 +33,12 @@ 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); }; +DECLARE_UNSMOB (Box, box); + #endif