add new clear-gray color theme
[ardour.git] / gtk2_ardour / hit.h
index d9f16db772a05d505c1b1ce503dfbeb3b98df58b..ea3e91bf2da6e317fb077946c5a9ac3e49d0043f 100644 (file)
@@ -30,16 +30,17 @@ namespace ArdourCanvas {
 class Hit : public NoteBase
 {
 public:
-       typedef Evoral::Note<Evoral::MusicalTime> NoteType;
+       typedef Evoral::Note<Evoral::Beats> NoteType;
 
        Hit (MidiRegionView&                   region,
             ArdourCanvas::Item*               parent,
             double                            size,
-            const boost::shared_ptr<NoteType> note = boost::shared_ptr<NoteType>(),
-            bool with_events = true);
-       ~Hit();
+            const boost::shared_ptr<NoteType> note        = boost::shared_ptr<NoteType>(),
+            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);
@@ -58,8 +61,10 @@ public:
 
        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;