Ardour  9.0-pre0-582-g084a23a80d
view_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_view_background_h__
24 #define __gtk2_ardour_view_background_h__
25 
26 #include <cstdint>
27 
28 #include "gtkmm2ext/colors.h"
29 
30 namespace ArdourCanvas {
31  class Item;
32 }
33 
37 class ViewBackground : public sigc::trackable
38 {
39  public:
41  virtual ~ViewBackground ();
42 
43  virtual double height() const { return 0.; }
44  virtual double width() const { return 0.; }
45  virtual double contents_height() const { return 0.; }
46 
48  virtual double y_position () const { return 0.; }
49 
50  protected:
51  virtual void update_contents_height () {}
52  virtual void color_handler () {}
53  virtual void parameter_changed (std::string const &) {}
54 };
55 
56 
57 #endif /* __gtk2_ardour_view_background_h__ */
virtual void update_contents_height()
virtual double height() const
virtual double contents_height() const
virtual double width() const
virtual ~ViewBackground()
virtual void color_handler()
virtual void parameter_changed(std::string const &)
virtual double y_position() const