]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/box.hh
(protect_smob): experiment: O(1) GC (un)protection.
[lilypond.git] / lily / include / box.hh
index 85173e0b5277ed15190661e8a7318457e0e42568..55da1fb78ded0bdf58d3bef8467b120eaba21a36 100644 (file)
@@ -8,16 +8,16 @@
 #include "interval.hh"
 #include "offset.hh"
 
-struct Box
+class Box
 {
   Interval interval_a_[NO_AXES];
-
+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;