X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fbox.hh;h=af5695b3bce8f64978a623c4d16b56dea054b7a4;hb=32a34dcef0c0041c6d62677487a380b5c8b85712;hp=813e6989532adabf155fb02a6848d543fb3e8c1e;hpb=dfd93790a53f5cf55229441e8f9c857ca866fb56;p=lilypond.git diff --git a/lily/include/box.hh b/lily/include/box.hh index 813e698953..af5695b3bc 100644 --- a/lily/include/box.hh +++ b/lily/include/box.hh @@ -12,24 +12,26 @@ class Box { Interval interval_a_[NO_AXES]; - DECLARE_SIMPLE_SMOBS(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); 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); };