Ardour  9.0-pre0-844-g046623df59
pianoroll_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 #pragma once
24 
25 #include <cstdint>
26 
27 #include <ytkmm/adjustment.h>
28 
29 #include "ardour/types.h"
30 
31 #include "midi_view_background.h"
32 
33 class MidiView;
34 
36 {
37  public:
40 
41  double height() const;
42  double width() const;
43  double contents_height() const;
44 
45  uint8_t get_preferred_midi_channel () const;
46  void set_note_highlight (bool);
47  void record_layer_check (std::shared_ptr<ARDOUR::Region>, samplepos_t);
48 
49  void set_size (double w, double h);
50  void set_view (MidiView*);
51 
52  protected:
54  double _width;
55  double _height;
56 
58 };
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