Ardour  9.0-pre0-582-g084a23a80d
midi_cue_background.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2014 David Robillard <d@drobilla.net>
3  * Copyright (C) 2007 Doug McLain <doug@nostar.net>
4  * Copyright (C) 2008-2017 Paul Davis <paul@linuxaudiosystems.com>
5  * Copyright (C) 2009-2012 Carl Hetherington <carl@carlh.net>
6  * Copyright (C) 2016-2017 Robin Gareus <robin@gareus.org>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License along
19  * with this program; if not, write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21  */
22 
23 #ifndef __gtk2_ardour_midi_cue_background_h__
24 #define __gtk2_ardour_midi_cue_background_h__
25 
26 #include <cstdint>
27 
28 #include <gtkmm/adjustment.h>
29 
30 #include "ardour/types.h"
31 
32 #include "midi_view_background.h"
33 
34 class MidiView;
35 
37 {
38  public:
41 
42  double height() const;
43  double width() const;
44  double contents_height() const;
45 
46  uint8_t get_preferred_midi_channel () const;
47  void set_note_highlight (bool);
48  void record_layer_check (std::shared_ptr<ARDOUR::Region>, samplepos_t);
49 
50  void set_size (double w, double h);
51  void set_view (MidiView*);
52 
53  protected:
55  double _width;
56  double _height;
57 
59 };
60 
61 
62 #endif /* __gtk2_ardour_midi_cue_background_h__ */
double height() const
void record_layer_check(std::shared_ptr< ARDOUR::Region >, samplepos_t)
double contents_height() const
void set_view(MidiView *)
void apply_note_range_to_children()
void set_size(double w, double h)
void set_note_highlight(bool)
uint8_t get_preferred_midi_channel() const
CueMidiBackground(ArdourCanvas::Item *parent)
double width() const
Temporal::samplepos_t samplepos_t