40 #ifndef _uihorizontallayoutstrategy_cpp
41 #define _uihorizontallayoutstrategy_cpp
43 #include "UI/horizontallayoutstrategy.h"
44 #include "UI/widget.h"
46 #include "exception.h"
70 Real PrevRightPos = 0;
73 while( ChildIt != ChildQuads.end() )
76 UInt32 ExpandingChildCount = 0;
78 while( NextNonExpandingChild != ChildQuads.end() && !( (*NextNonExpandingChild)->GetSizingPolicy().CanExpandHorizontally() ) )
80 ++NextNonExpandingChild;
81 ++ExpandingChildCount;
85 if( ExpandingChildCount == 0 ) {
97 if( NextNonExpandingChild != ChildQuads.end() )
98 ++NextNonExpandingChild;
99 ChildIt = NextNonExpandingChild;
103 if( NextNonExpandingChild != ChildQuads.end() ) {
123 Real XPos = PrevRightPos + 1;
124 Real XSpacePerChild = (NextLeftPos - PrevRightPos) / ExpandingChildCount;
126 while( ChildIt != NextNonExpandingChild )
132 NewChildRect.
Size.
X = XSpacePerChild;
145 if( NextNonExpandingChild != ChildQuads.end() )
146 ++NextNonExpandingChild;
147 ChildIt = NextNonExpandingChild;