summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ghostregion.h
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2016-12-22 04:39:53 +1100
committernick_m <mainsbridge@gmail.com>2016-12-22 04:41:25 +1100
commit05c3850ac197c6a7c5217b060dc596caabdf3c27 (patch)
tree1e344f90d4996eb51e4a68be650cd813d89da656 /gtk2_ardour/ghostregion.h
parente75788614a66f925f6afcb2d0d83f64b9a91c534 (diff)
GhostEvent wrangling.
- update_range() solely looks after visibility. - update_note/hit() positions both x and y using code stolen from update_range() - add update_contents_height() for when we just change the GR height. - find_event() is now used rather than map::find() - use temp canvas items to avoid constructor overhead.
Diffstat (limited to 'gtk2_ardour/ghostregion.h')
-rw-r--r--gtk2_ardour/ghostregion.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk2_ardour/ghostregion.h b/gtk2_ardour/ghostregion.h
index 75b55d0dbe..f4848fd3cc 100644
--- a/gtk2_ardour/ghostregion.h
+++ b/gtk2_ardour/ghostregion.h
@@ -107,6 +107,7 @@ public:
void set_colors();
void update_range();
+ void set_contents_height();
void add_note(NoteBase*);
void update_note (Note*);
@@ -117,6 +118,8 @@ public:
private:
ArdourCanvas::Color _outline;
+ ArdourCanvas::Rectangle* _tmp_rect;
+ ArdourCanvas::Polygon* _tmp_poly;
MidiGhostRegion::GhostEvent* find_event (NoteBase*);
typedef Evoral::Note<Evoral::Beats> NoteType;