Pyro higlevel API
Classes | Macros
layoutview.cpp File Reference

Classes

class  os::LayoutView::Private
 
struct  ShareNode
 
class  os::LayoutNode::Private
 

Macros

#define FOR_EACH_NAME(name1, func)
 

Macro Definition Documentation

#define FOR_EACH_NAME (   name1,
  func 
)
Value:
{ \
va_list pArgs; va_start( pArgs, name1 ); \
for( const char* name = name1 ; name != NULL ; name = va_arg(pArgs,const char*) ) { \
LayoutNode* pcNode = FindNode( name, true, true ); \
if ( pcNode != NULL ) { \
pcNode->func; \
} else { \
dbprintf( "Warning: LayoutNode::%s() could not find node '%s'\n", __FUNCTION__, name ); \
} \
} \
va_end( pArgs ); \
}

Referenced by os::LayoutNode::SetBorders(), os::LayoutNode::SetHAlignments(), os::LayoutNode::SetVAlignments(), and os::LayoutNode::SetWeights().