void CGUIControlGroup::SaveStates(std::vector<CControlState> &states) { // save our state, and that of our children states.push_back(CControlState(GetID(), m_focusedControl)); for (iControls it = m_children.begin(); it != m_children.end(); ++it) (*it)->SaveStates(states); }
void CGUIBaseContainer::SaveStates(std::vector<CControlState> &states) { if (!m_listProvider || !m_listProvider->AlwaysFocusDefaultItem()) states.push_back(CControlState(GetID(), GetSelectedItem())); }