X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fhit.h;h=f13a0ef27c054032f8440984ca2478ed56c6b72f;hb=57c1b6e261076cae9b61e74aa0aff47a9f296c0f;hp=3afdd9136775b6ba5892227494feacd2c880af70;hpb=7a30e63eaad66ded1c47f5cdb2e0f28c3b0a1d4a;p=ardour.git diff --git a/gtk2_ardour/hit.h b/gtk2_ardour/hit.h index 3afdd91367..f13a0ef27c 100644 --- a/gtk2_ardour/hit.h +++ b/gtk2_ardour/hit.h @@ -30,16 +30,16 @@ namespace ArdourCanvas { class Hit : public NoteBase { public: - typedef Evoral::Note NoteType; + typedef Evoral::Note NoteType; - Hit ( - MidiRegionView& region, - ArdourCanvas::Group* group, - double size, - const boost::shared_ptr note = boost::shared_ptr(), - bool with_events = true); + Hit (MidiRegionView& region, + ArdourCanvas::Item* parent, + double size, + const boost::shared_ptr note = boost::shared_ptr(), + bool with_events = true); + ~Hit(); - void show (); + void show (); void hide (); ArdourCanvas::Coord x0 () const; @@ -56,6 +56,9 @@ public: void move_event (double, double); + /* no trimming of percussive hits */ + bool big_enough_to_trim() const { return false; } + private: ArdourCanvas::Polygon* _polygon; };