Ardour  9.0-pre0-582-g084a23a80d
ghost_event.h
Go to the documentation of this file.
1 #ifndef __gtk2_ardour_ghost_event_h__
2 #define __gtk2_ardour_ghost_event_h__
3 
4 #include <memory>
5 #include <unordered_map>
6 #include <sigc++/trackable.h>
7 
8 #include "evoral/Note.h"
9 #include "temporal/beats.h"
10 
11 namespace ArdourCanvas {
12  class Container;
13  class Item;
14 }
15 
16 class NoteBase;
17 
18 class GhostEvent : public sigc::trackable
19 {
20  public:
23  virtual ~GhostEvent ();
24 
27  bool is_hit;
29 
30  /* must match typedef in NoteBase */
32  typedef std::unordered_map<std::shared_ptr<NoteType>, GhostEvent* > EventList;
33 
34  static GhostEvent* find (std::shared_ptr<NoteType> parent, EventList& events, EventList::iterator& opti);
35 };
36 
37 
38 #endif /* __gtk2_ardour_ghost_event_h__ */
bool is_hit
Definition: ghost_event.h:27
NoteBase * event
Definition: ghost_event.h:25
Evoral::Note< Temporal::Beats > NoteType
Definition: ghost_event.h:31
int velocity_while_editing
Definition: ghost_event.h:28
GhostEvent(::NoteBase *, ArdourCanvas::Container *)
static GhostEvent * find(std::shared_ptr< NoteType > parent, EventList &events, EventList::iterator &opti)
ArdourCanvas::Item * item
Definition: ghost_event.h:26
GhostEvent(::NoteBase *, ArdourCanvas::Container *, ArdourCanvas::Item *i)
virtual ~GhostEvent()
std::unordered_map< std::shared_ptr< NoteType >, GhostEvent * > EventList
Definition: ghost_event.h:32