X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fbox.hh;h=baa4ce0b7645791bd993f0a3b204d3f0a9c8f8e1;hb=74b008a3d5f390a0429dd8fab7dd20f2704e826b;hp=fc8eda7bec01e5b3dd8bd98f2d71ade0397443c6;hpb=bdf4ab13203502e7ec7cf9cf5896527643a07c1f;p=lilypond.git diff --git a/lily/include/box.hh b/lily/include/box.hh index fc8eda7bec..baa4ce0b76 100644 --- a/lily/include/box.hh +++ b/lily/include/box.hh @@ -7,11 +7,13 @@ #include "interval.hh" #include "offset.hh" +#include "smobs.hh" -struct Box +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]; } @@ -22,6 +24,7 @@ struct Box Offset center () const; void translate (Offset o); + /// smallest box enclosing #b# void set_empty (); void add_point (Offset);