X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fcanvas-hit.h;h=a467952966ad793199dbc196bf4932ab785aec33;hb=50437bff22279473cd364d007d5e474af2a542bc;hp=e77ef3738031364552205600bfdef23eb7193ec4;hpb=58e569c9e12ff1b414bb4a5839425db3baacdae7;p=ardour.git diff --git a/gtk2_ardour/canvas-hit.h b/gtk2_ardour/canvas-hit.h index e77ef37380..a467952966 100644 --- a/gtk2_ardour/canvas-hit.h +++ b/gtk2_ardour/canvas-hit.h @@ -29,16 +29,21 @@ namespace Canvas { class CanvasHit : public Diamond, public CanvasNoteEvent { public: + typedef Evoral::Note NoteType; + CanvasHit( - MidiRegionView& region, - Group& group, - double size, - const boost::shared_ptr note = boost::shared_ptr()) + MidiRegionView& region, + Group& group, + double size, + const boost::shared_ptr note = boost::shared_ptr()) : Diamond(group, size), CanvasNoteEvent(region, this, note) { } + void show() { Diamond::show(); } + void hide() { Diamond::hide(); } + double x1() { double x1, y1, x2, y2; get_bounds(x1,y1,x2,y2); return x1; } double y1() { double x1, y1, x2, y2; get_bounds(x1,y1,x2,y2); return y1; } double x2() { double x1, y1, x2, y2; get_bounds(x1,y1,x2,y2); return x2; }