Пример #1
0
	void Object2D::RemoveChild(const Object2D::Ptr& child)
	{
		GetCoreObject()->RemoveChild((child->GetCoreObject()));
		m_children.remove(child);
	}
Пример #2
0
	void Layer2D::RemoveFromCore(const Object2D::Ptr& object)
	{
		m_coreLayer->RemoveObject(object->GetCoreObject());
	}
Пример #3
0
	void Object2D::AddChild(const Object2D::Ptr& child, ChildMode mode)
	{
		GetCoreObject()->AddChild((child->GetCoreObject()), mode);
		m_children.push_back(child);
	}
Пример #4
0
	void Layer2D::AddToCore(const Object2D::Ptr& object)
	{
		m_coreLayer->AddObject(object->GetCoreObject());
	}
Пример #5
0
	void Layer2D::Unregister(const Object2D::Ptr& object)
	{
		object->SetLayer(nullptr);
	}
Пример #6
0
	void Layer2D::Register(const Object2D::Ptr& object)
	{
		object->SetLayer(this);
	}
Пример #7
0
	void Layer2D::RemoveObject(const Object2D::Ptr& object)
	{
		m_objects->Remove(object, true);
		m_coreLayer->PrepareToRemoveObject(object->GetCoreObject());
	}
Пример #8
0
	void Layer2D::AddObject(const Object2D::Ptr& object)
	{
		m_objects->Add(object);
		m_coreLayer->PrepareToAddObject(object->GetCoreObject());
	}