X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fdiamond.h;h=a9110d497d4bb79ec7d58406707d8ad1c5c0abc0;hb=01e0f512232fe73c18339f368c90f581a5bebdb2;hp=da344fed29a535708714c05ff5adf69323894dfd;hpb=38eb5f4539786e0edafc31e275ed598bd4e4164b;p=ardour.git diff --git a/gtk2_ardour/diamond.h b/gtk2_ardour/diamond.h index da344fed29..a9110d497d 100644 --- a/gtk2_ardour/diamond.h +++ b/gtk2_ardour/diamond.h @@ -1,6 +1,6 @@ /* - Copyright (C) 2007 Paul Davis - Author: Dave Robillard + Copyright (C) 2007 Paul Davis + Author: David Robillard This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -22,16 +22,27 @@ #include #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; };