void RenderContainer::handleMouseRelease(int button, int x, int y) { std::list<RenderObject *>::const_iterator itr = _objlist.begin(); for (;itr != _objlist.end() ; ++itr) { RenderObject * current = *itr; if (!current->getVisible()) continue; if (!current->hitTest(x, y)) continue; if (current->handleMouseRelease(button, x, y)) break; } }