Example #1
0
//------------------------------------------------------------------------
void Selection::ResetBoxes(Boxes& aBoxes)
{
	for (Boxes::iterator boxIt = aBoxes.begin(); boxIt != aBoxes.end(); ++boxIt)
	{
		boxIt->Reset();
	}
}
Example #2
0
//------------------------------------------------------------------------
bool Selection::DeleteWindowBox(Boxes& aBoxes, const CEGUI::Window* aWindow)
{
	for (Boxes::iterator boxIt = aBoxes.begin(); boxIt != aBoxes.end(); ++boxIt)
	{
		if (boxIt->GetWindow() == aWindow)
		{
			aBoxes.erase(boxIt) ;
			return true;
		}
	}
	return false;
}