setHeight should have been declaired void instead of float
[mussa.git] / alg / drawable.hpp
index 97b01059259587015db5bda8c87ff69dc5d87d9a..8760daf180b9263c4591c7ab9b5383b9621d4e63 100644 (file)
@@ -19,7 +19,8 @@ typedef boost::shared_ptr<Drawable> DrawableRef;
  */ 
 class Drawable {
 public:
-  typedef void (*draw_func_ptr)(SeqSpanRef, void *);
+  // render our SeqSpanRef in the region between left/right
+  typedef void (*draw_func_ptr)(SeqSpanRef, float left, float right);
   
   Drawable() : 
     draw_x(0), draw_y(0), draw_z(0), draw_height(0), draw_color(new Color), draw_func(0) {}
@@ -46,7 +47,7 @@ public:
   float z() const { return draw_z; }
   
   //! set how tall our rectangle should be
-  float setHeight(float h) { draw_height = h; }
+  void setHeight(float h) { draw_height = h; }
   //! how thick (high) the track we're drawing is
   float height() const { return draw_height; }
 
@@ -65,6 +66,5 @@ protected:
   float draw_height;
   ColorRef draw_color;
   draw_func_ptr draw_func;
-
 };
 #endif /*DRAWABLE_HPP_*/