void Object2D::RemoveChild(const Object2D::Ptr& child) { GetCoreObject()->RemoveChild((child->GetCoreObject())); m_children.remove(child); }
void Layer2D::RemoveFromCore(const Object2D::Ptr& object) { m_coreLayer->RemoveObject(object->GetCoreObject()); }
void Object2D::AddChild(const Object2D::Ptr& child, ChildMode mode) { GetCoreObject()->AddChild((child->GetCoreObject()), mode); m_children.push_back(child); }
void Layer2D::AddToCore(const Object2D::Ptr& object) { m_coreLayer->AddObject(object->GetCoreObject()); }
void Layer2D::Unregister(const Object2D::Ptr& object) { object->SetLayer(nullptr); }
void Layer2D::Register(const Object2D::Ptr& object) { object->SetLayer(this); }
void Layer2D::RemoveObject(const Object2D::Ptr& object) { m_objects->Remove(object, true); m_coreLayer->PrepareToRemoveObject(object->GetCoreObject()); }
void Layer2D::AddObject(const Object2D::Ptr& object) { m_objects->Add(object); m_coreLayer->PrepareToAddObject(object->GetCoreObject()); }