2 Copyright (C) 2007 Paul Davis
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #ifndef __gtk_ardour_note_h__
22 #define __gtk_ardour_note_h__
25 #include "note_base.h"
26 #include "midi_util.h"
28 namespace ArdourCanvas {
32 class Note : public NoteBase
35 typedef Evoral::Note<Evoral::Beats> NoteType;
37 Note (MidiRegionView& region,
38 ArdourCanvas::Item* parent,
39 const boost::shared_ptr<NoteType> note = boost::shared_ptr<NoteType>(),
40 bool with_events = true);
44 ArdourCanvas::Coord x0 () const;
45 ArdourCanvas::Coord y0 () const;
46 ArdourCanvas::Coord x1 () const;
47 ArdourCanvas::Coord y1 () const;
49 void set_x0 (ArdourCanvas::Coord);
50 void set_y0 (ArdourCanvas::Coord);
51 void set_x1 (ArdourCanvas::Coord);
52 void set_y1 (ArdourCanvas::Coord);
54 void set_outline_what (ArdourCanvas::Rectangle::What);
55 void set_outline_all ();
57 void set_outline_color (uint32_t);
58 void set_fill_color (uint32_t);
63 void set_ignore_events (bool);
65 void move_event (double dx, double dy);
68 ArdourCanvas::Rectangle* _rectangle;
71 #endif /* __gtk_ardour_note_h__ */