summaryrefslogtreecommitdiff
path: root/libs/canvas/image.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-06-12 14:53:44 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2014-06-12 14:53:44 -0400
commit590882f3c8e063528452d71daffb36d3151da05e (patch)
tree27480b4b85a7d2a8aeae51c9c9470c196b8dfff8 /libs/canvas/image.cc
parent551014240a49ee11b9dc7541bbe8427ac3402aef (diff)
change Canvas heirarchy and constructors
Items no longer need a parent group (they require a Canvas pointer instead), so all constructors have been rationalized and have two variants, one with a parent and one with a canvas. All Items now inherit from Fill and Outline, to banish diagonal inheritance and virtual base classes and all that. There were zero changes to the Ardour GUI arising from these changes.
Diffstat (limited to 'libs/canvas/image.cc')
-rw-r--r--libs/canvas/image.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/canvas/image.cc b/libs/canvas/image.cc
index 32e453dc30..5ab280cbbc 100644
--- a/libs/canvas/image.cc
+++ b/libs/canvas/image.cc
@@ -22,6 +22,16 @@
using namespace ArdourCanvas;
+Image::Image (Canvas* canvas, Cairo::Format fmt, int width, int height)
+ : Item (canvas)
+ , _format (fmt)
+ , _width (width)
+ , _height (height)
+ , _need_render (false)
+{
+ DataReady.connect (data_connections, MISSING_INVALIDATOR, boost::bind (&Image::accept_data, this), gui_context());
+}
+
Image::Image (Group* group, Cairo::Format fmt, int width, int height)
: Item (group)
, _format (fmt)