]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/box.hh
Use FT_Error in the prototype for freetype_error_string().
[lilypond.git] / lily / include / box.hh
index fc8eda7bec01e5b3dd8bd98f2d71ade0397443c6..baa4ce0b7645791bd993f0a3b204d3f0a9c8f8e1 100644 (file)
@@ -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);