Esempio n. 1
0
/**
 * @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;
}
Esempio n. 2
0
/**
 * @brief Validate a node tree
 */
void UI_Validate (uiNode_t* node)
{
	if (node->invalidated)
		UI_Node_DoLayout(node);
}