X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fhit.h;h=0a02501606b0830f92749e9c1d790aea0cea14ab;hb=ac33bb425641bd4377f68f8a6a3eabc6c58286a9;hp=3afdd9136775b6ba5892227494feacd2c880af70;hpb=300b484cf6ac14c15e365c4062345d64a61c4b18;p=ardour.git diff --git a/gtk2_ardour/hit.h b/gtk2_ardour/hit.h index 3afdd91367..0a02501606 100644 --- a/gtk2_ardour/hit.h +++ b/gtk2_ardour/hit.h @@ -32,14 +32,14 @@ class Hit : public NoteBase public: typedef Evoral::Note NoteType; - Hit ( - MidiRegionView& region, - ArdourCanvas::Group* group, - double size, - const boost::shared_ptr note = boost::shared_ptr(), - bool with_events = true); - - void show (); + Hit (MidiRegionView& region, + ArdourCanvas::Group* group, + double size, + const boost::shared_ptr note = boost::shared_ptr(), + bool with_events = true); + ~Hit(); + + 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; };