mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 14:16:31 +01:00
Adding XML scripting to ArdourCanvas
[git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 452743]
This commit is contained in:
parent
8cbcffc3ad
commit
a1709c74c6
24 changed files with 534 additions and 122 deletions
|
|
@ -38,6 +38,18 @@ Rectangle::Rectangle (Group* parent)
|
|||
{
|
||||
}
|
||||
|
||||
Rectangle::Rectangle (Group* parent, const XMLNode& definition, const XMLNodeMap& styles, std::map<std::string, Item*>& named_items)
|
||||
: Item (parent, definition, styles, named_items)
|
||||
, Outline (parent, definition, styles, named_items)
|
||||
, Fill (parent, definition, styles, named_items)
|
||||
, _outline_what ((What) (LEFT | RIGHT | TOP | BOTTOM))
|
||||
{
|
||||
//_rect.x0 = xml_property(definition, "x", styles, 0.0);
|
||||
//_rect.y0 = xml_property(definition, "y", styles, 0.0);
|
||||
_rect.x1 = _rect.x0 + xml_property(definition, "width", styles, 0.0);
|
||||
_rect.y1 = _rect.y0 + xml_property(definition, "height", styles, 0.0);
|
||||
}
|
||||
|
||||
Rectangle::Rectangle (Group* parent, Rect const & rect)
|
||||
: Item (parent)
|
||||
, Outline (parent)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue