diff options
Diffstat (limited to 'libs/canvas/rectangle.cc')
-rw-r--r-- | libs/canvas/rectangle.cc | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/libs/canvas/rectangle.cc b/libs/canvas/rectangle.cc index cea5567dcc..ac05003693 100644 --- a/libs/canvas/rectangle.cc +++ b/libs/canvas/rectangle.cc @@ -30,22 +30,30 @@ using namespace std; using namespace ArdourCanvas; -Rectangle::Rectangle (Group* parent) - : Item (parent) - , Outline (parent) - , Fill (parent) +Rectangle::Rectangle (Canvas* c) + : Item (c) , _outline_what ((What) (LEFT | RIGHT | TOP | BOTTOM)) { } -Rectangle::Rectangle (Group* parent, Rect const & rect) - : Item (parent) - , Outline (parent) - , Fill (parent) +Rectangle::Rectangle (Canvas* c, Rect const & rect) + : Item (c) + , _rect (rect) + , _outline_what ((What) (LEFT | RIGHT | TOP | BOTTOM)) +{ +} + +Rectangle::Rectangle (Group* g) + : Item (g) + , _outline_what ((What) (LEFT | RIGHT | TOP | BOTTOM)) +{ +} + +Rectangle::Rectangle (Group* g, Rect const & rect) + : Item (g) , _rect (rect) , _outline_what ((What) (LEFT | RIGHT | TOP | BOTTOM)) { - } void |