//------------------------------------------------------------------------ void Selection::ResetBoxes(Boxes& aBoxes) { for (Boxes::iterator boxIt = aBoxes.begin(); boxIt != aBoxes.end(); ++boxIt) { boxIt->Reset(); } }
//------------------------------------------------------------------------ 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; }