void CGUIScrollBar::Process(unsigned int currentTime, CDirtyRegionList &dirtyregions) { bool changed = false; if (m_bInvalidated) changed |= UpdateBarSize(); changed |= m_guiBackground.Process(currentTime); changed |= m_guiBarNoFocus.Process(currentTime); changed |= m_guiBarFocus.Process(currentTime); changed |= m_guiNibNoFocus.Process(currentTime); changed |= m_guiNibFocus.Process(currentTime); if (changed) MarkDirtyRegion(); CGUIControl::Process(currentTime, dirtyregions); }
void CGUIScrollBar::Render() { if (m_bInvalidated) UpdateBarSize(); m_guiBackground.Render(); if (m_bHasFocus) { m_guiBarFocus.Render(); m_guiNibFocus.Render(); } else { m_guiBarNoFocus.Render(); m_guiNibNoFocus.Render(); } CGUIControl::Render(); }