mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 21:55:43 +01:00
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.
This commit is contained in:
parent
551014240a
commit
590882f3c8
48 changed files with 409 additions and 178 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue