*/
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) {}
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; }
float draw_height;
ColorRef draw_color;
draw_func_ptr draw_func;
-
};
#endif /*DRAWABLE_HPP_*/