summaryrefslogtreecommitdiff
path: root/gtk2_ardour/note_base.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-12-28 20:23:52 -0500
committerDavid Robillard <d@drobilla.net>2014-12-28 20:23:52 -0500
commit606efb601c15fa966a3b34cbda07b2d05be8c5b0 (patch)
tree17879a763ec4dc09d01e04ac88b3995a6251f6f3 /gtk2_ardour/note_base.h
parent12b18da8f6f27b804b36169927ec01d688de8d2c (diff)
Show correct ghost hit for percussive tracks.
Diffstat (limited to 'gtk2_ardour/note_base.h')
-rw-r--r--gtk2_ardour/note_base.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/note_base.h b/gtk2_ardour/note_base.h
index d426a7b59d..150837e193 100644
--- a/gtk2_ardour/note_base.h
+++ b/gtk2_ardour/note_base.h
@@ -41,7 +41,7 @@ namespace ArdourCanvas {
class Text;
}
-/** This manages all the event handling for any MIDI event on the canvas.
+/** Base class for canvas notes (sustained note rectangles and hit diamonds).
*
* This is not actually a canvas item itself to avoid the dreaded diamond
* inheritance pattern, since various types of canvas items (Note (rect), Hit
@@ -51,7 +51,6 @@ namespace ArdourCanvas {
* Note: Because of this, derived classes need to manually bounce events to
* on_event, it won't happen automatically.
*/
-
class NoteBase : public sigc::trackable
{
public:
@@ -91,6 +90,8 @@ class NoteBase : public sigc::trackable
virtual void set_outline_color(uint32_t c) = 0;
virtual void set_fill_color(uint32_t c) = 0;
+ virtual void set_ignore_events(bool ignore) = 0;
+
virtual ArdourCanvas::Coord x0 () const = 0;
virtual ArdourCanvas::Coord y0 () const = 0;
virtual ArdourCanvas::Coord x1 () const = 0;