/** * @brief Call to update the node layout. This common code revalidates the node tree. */ void uiLocatedNode::doLayout (uiNode_t* node) { if (!node->invalidated) return; for (uiNode_t* child = node->firstChild; child; child = child->next) { UI_Node_DoLayout(child); } node->invalidated = false; }
/** * @brief Validate a node tree */ void UI_Validate (uiNode_t* node) { if (node->invalidated) UI_Node_DoLayout(node); }