1 #include "canvas-note.h"
2 #include "midi_region_view.h"
3 #include "public_editor.h"
4 #include "evoral/Note.hpp"
6 using namespace ARDOUR;
12 CanvasNote::on_event(GdkEvent* ev)
14 if (!_region.get_trackview().editor().canvas_note_event (ev, this)) {
15 return CanvasNoteEvent::on_event (ev);
22 CanvasNote::move_event(double dx, double dy)
24 property_x1() = property_x1() + dx;
25 property_y1() = property_y1() + dy;
26 property_x2() = property_x2() + dx;
27 property_y2() = property_y2() + dy;
31 _text->property_x() = _text->property_x() + dx;
32 _text->property_y() = _text->property_y() + dy;