void CAView::updateDraw() { CAView* v = this->getSuperview(); CC_RETURN_IF(v == NULL); while (v == v->getSuperview()) { CC_BREAK_IF(v == NULL); CC_RETURN_IF(v->isVisible()); } SET_DIRTY_RECURSIVELY(); this->reViewlayout(); CAApplication::getApplication()->updateDraw(); }
void CAView::setReorderChildDirtyRecursively(void) { //only set parents flag the first time if ( ! m_bReorderChildDirty ) { m_bReorderChildDirty = true; CAView* pNode = (CAView*)m_pSuperview; while (pNode && pNode != m_pobBatchView) { pNode->setReorderChildDirtyRecursively(); pNode=pNode->getSuperview(); } } }