Standardize drawing of PixFader and BarController; implement flat_buttons and prelight.
[ardour.git] / gtk2_ardour / note_base.h
index 6528b286591dfe51e2a0f9e8e15804e5053c795e..5e52be0732e7577288e16838163147cde433e258 100644 (file)
@@ -53,13 +53,14 @@ namespace ArdourCanvas {
 
 class NoteBase : public sigc::trackable
 {
-public:
+  public:
        typedef Evoral::Note<ARDOUR::MidiModel::TimeType> NoteType;
 
        NoteBase (MidiRegionView& region, bool, const boost::shared_ptr<NoteType> note = boost::shared_ptr<NoteType>());
        virtual ~NoteBase ();
 
        void set_item (ArdourCanvas::Item *);
+        ArdourCanvas::Item* item() const { return _item; }
 
         static PBD::Signal1<void, NoteBase*> NoteBaseDeleted;
 
@@ -137,7 +138,7 @@ public:
        static const uint32_t midi_channel_colors[16];
 
         bool mouse_near_ends () const;
-        bool big_enough_to_trim () const;
+        virtual bool big_enough_to_trim () const;
 
 protected:
        enum State { None, Pressed, Dragging };