40 #ifndef _uiverticallayoutstrategy_cpp
41 #define _uiverticallayoutstrategy_cpp
43 #include "UI/verticallayoutstrategy.h"
44 #include "UI/widget.h"
46 #include "exception.h"
70 Real PrevBottomPos = 0;
73 while( ChildIt != ChildQuads.end() )
76 UInt32 ExpandingChildCount = 0;
78 while( NextNonExpandingChild != ChildQuads.end() && !( (*NextNonExpandingChild)->GetSizingPolicy().CanExpandVertically() ) )
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 YPos = PrevBottomPos + 1;
124 Real YSpacePerChild = (NextTopPos - PrevBottomPos) / ExpandingChildCount;
126 while( ChildIt != NextNonExpandingChild )
133 NewChildRect.
Size.
Y = YSpacePerChild;
145 if( NextNonExpandingChild != ChildQuads.end() )
146 ++NextNonExpandingChild;
147 ChildIt = NextNonExpandingChild;