void SplitPanel::_collectPatches(Patches& container, const Rect& geo, const Rect& clip) { if (m_pSkin) container.add(Rect(geo, clip)); else { if (m_firstChild.pWidget) m_firstChild.pWidget->_collectPatches(container, m_firstChild.geo + geo.pos(), clip ); if( m_pHandleSkin ) container.add(Rect(m_handleGeo, clip)); if (m_secondChild.pWidget) m_secondChild.pWidget->_collectPatches(container, m_secondChild.geo + geo.pos(), clip ); } }
void Container::_collectPatches( Patches& container, const Rect& geo, const Rect& clip ) { if( m_pSkin ) container.add( Rect( geo, clip ) ); else { Rect childGeo; Hook * p = _firstHookWithGeo( childGeo ); while(p) { if( p->_isVisible() ) p->_widget()->_collectPatches( container, childGeo + geo.pos(), clip ); p = _nextHookWithGeo( childGeo, p ); } } }
void Widget::_collectPatches( Patches& container, const Rect& geo, const Rect& clip ) { container.add( Rect( geo, clip ) ); }