X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fdiamond.h;h=a8169becb9ef93a8576c5a70ce3a0338078ed27a;hb=e490a1a2785f6d5aa3f8b3e600ce2e614c3a6077;hp=32544f4880e645510d26b99dc33e08ac1320c6d4;hpb=7afccaa9fe6601c5809d61e637683a107063310b;p=ardour.git diff --git a/gtk2_ardour/diamond.h b/gtk2_ardour/diamond.h index 32544f4880..a8169becb9 100644 --- a/gtk2_ardour/diamond.h +++ b/gtk2_ardour/diamond.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2007 Paul Davis + Copyright (C) 2007 Paul Davis Author: Dave Robillard This program is free software; you can redistribute it and/or modify @@ -21,17 +21,28 @@ #define __ardour_diamond_h__ #include -#include "canvas-midi-event.h" +#include "canvas-note-event.h" +#include "canvas.h" namespace Gnome { namespace Canvas { -class Diamond : public Polygon { -public: +class Diamond : public Polygon +{ + public: Diamond(Group& group, double height); - + ~Diamond (); + + void move_to (double x, double y); + void move_by (double dx, double dy); void set_height(double height); + + protected: + double _x; + double _y; + double _h; + GnomeCanvasPoints* points; };