]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/box.hh
* lily/grob-property.cc: add scm debugging hooks into
[lilypond.git] / lily / include / box.hh
index 85173e0b5277ed15190661e8a7318457e0e42568..b6f933af9b27768a32613ee1d82e809ec2f79232 100644 (file)
@@ -7,21 +7,24 @@
 
 #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]; }
   Interval y () const{return interval_a_[Y_AXIS]; }
-  Interval operator[] (Axis a) const;
-  Interval &operator[] (Axis a);
+  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);