]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/box.hh
* scm/chords-ignatzek.scm: new file.
[lilypond.git] / lily / include / box.hh
index c53543d05855087590009b5e1dff587cbe182709..cbdfc2da7aef9724821eb5a7ac37c313d051f153 100644 (file)
@@ -5,28 +5,33 @@
 #ifndef BOXES_HH
 #define BOXES_HH
 
-#include "fproto.hh"
+#include "flower-proto.hh"
 #include "real.hh"
 #include "interval.hh"
 #include "offset.hh"
 #include "axes.hh"
 
 
-struct Box {
+struct Box
+{
   Interval interval_a_[NO_AXES];
     
-  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 &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);
+
+  Offset center () const;
     
   void translate (Offset o);
   /// smallest box enclosing #b#
   void set_empty ();
+  void add_point (Offset);
+  void scale (Real r);
   void unite (Box b);
-  Box();
+  Box ();
   Box (Interval ix, Interval iy);
 };