示例#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());
	}