start implementing shape tag

This commit is contained in:
2017-02-01 00:59:56 +00:00
parent 39f44eca5e
commit ed02e38805
9 changed files with 120 additions and 6 deletions

View File

@@ -182,6 +182,9 @@ void Node::load_internal(const tinyxml2::XMLElement* x_node)
case kWidget::Border:
m_widget = std::make_unique<WidgetBorder>();
break;
case kWidget::Shape:
m_widget = std::make_unique<WidgetShape>();
break;
}
while (attr)
@@ -190,6 +193,9 @@ void Node::load_internal(const tinyxml2::XMLElement* x_node)
attr = attr->Next();
}
if (m_widget)
m_widget->create();
auto x_child = x_node->FirstChildElement();
while (x_child)
{