diff options
Diffstat (limited to 'gtk2_ardour/canvas-midi-event.h')
-rw-r--r-- | gtk2_ardour/canvas-midi-event.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk2_ardour/canvas-midi-event.h b/gtk2_ardour/canvas-midi-event.h index 8a1454c98e..214c275bed 100644 --- a/gtk2_ardour/canvas-midi-event.h +++ b/gtk2_ardour/canvas-midi-event.h @@ -44,9 +44,13 @@ public: CanvasMidiEvent(MidiRegionView& region, Item* item, const ARDOUR::MidiModel::Note* note = NULL); virtual ~CanvasMidiEvent() {} - virtual bool on_event(GdkEvent* ev); + bool on_event(GdkEvent* ev); - virtual void selected(bool yn) = 0; + bool selected() const { return _selected; } + void selected(bool yn); + + virtual void set_outline_color(uint32_t c) = 0; + virtual void set_fill_color(uint32_t c) = 0; const ARDOUR::MidiModel::Note* note() { return _note; } @@ -57,6 +61,7 @@ protected: Item* const _item; State _state; const ARDOUR::MidiModel::Note* _note; + bool _selected; }; } // namespace Gnome |