X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fhit.h;h=81a0868734d1681315a9626b1adfe80f49bb6b25;hb=2eae3b5cd19e845a2258fb578548c2b571e46348;hp=0a02501606b0830f92749e9c1d790aea0cea14ab;hpb=8c9749e42faf7808034ed8b7afce4a2fe6dc6f33;p=ardour.git diff --git a/gtk2_ardour/hit.h b/gtk2_ardour/hit.h index 0a02501606..81a0868734 100644 --- a/gtk2_ardour/hit.h +++ b/gtk2_ardour/hit.h @@ -30,16 +30,17 @@ namespace ArdourCanvas { class Hit : public NoteBase { public: - typedef Evoral::Note NoteType; + typedef Evoral::Note NoteType; Hit (MidiRegionView& region, - ArdourCanvas::Group* group, + ArdourCanvas::Item* parent, double size, - const boost::shared_ptr note = boost::shared_ptr(), - bool with_events = true); - ~Hit(); + const boost::shared_ptr note = boost::shared_ptr(), + bool with_events = true); - void show (); + ~Hit(); + + void show (); void hide (); ArdourCanvas::Coord x0 () const; @@ -47,6 +48,8 @@ public: ArdourCanvas::Coord x1 () const; ArdourCanvas::Coord y1 () const; + ArdourCanvas::Duple position (); + void set_position (ArdourCanvas::Duple); void set_height (ArdourCanvas::Coord); @@ -54,10 +57,14 @@ public: void set_outline_color (uint32_t); void set_fill_color (uint32_t); + void set_ignore_events (bool); + void move_event (double, double); - /* no trimming of percussive hits */ - bool big_enough_to_trim() const { return false; } + /* no trimming of percussive hits */ + bool big_enough_to_trim() const { return false; } + + static ArdourCanvas::Points points(ArdourCanvas::Distance height); private: ArdourCanvas::Polygon* _polygon;