added icons and popup menus
This commit is contained in:
@@ -72,12 +72,12 @@ void Node::add_child(Node* n)
|
||||
|
||||
void Node::remove_child(Node* n)
|
||||
{
|
||||
auto i = std::find_if(m_children.begin(), m_children.end(), [=](std::unique_ptr<Node>& ptr)
|
||||
{
|
||||
return ptr.get() == n;
|
||||
});
|
||||
m_children.erase(i);
|
||||
YGNodeRemoveChild(y_node, n->y_node);
|
||||
auto i = std::find_if(m_children.begin(), m_children.end(), [=](std::unique_ptr<Node>& ptr) { return ptr.get() == n; });
|
||||
if (i != m_children.end())
|
||||
{
|
||||
m_children.erase(i);
|
||||
YGNodeRemoveChild(y_node, n->y_node);
|
||||
}
|
||||
}
|
||||
|
||||
void Node::update(float width, float height)
|
||||
|
||||
Reference in New Issue
Block a user