Creates a set of offset/span pairs specifying how to
lay out a set of components with the specified alignments.
The resulting span allocations will overlap, with each one
fitting as well as possible into the given total allocation.
This method requires that you specify
the total amount of space to be allocated,
the size requirements for each component to be placed
(specified as an array of SizeRequirements), and
the total size requirements of the set of components
(only the alignment field of which is actually used)
You can get the total size requirement by invoking
getAlignedSizeRequirements.
This method also requires a flag indicating whether normal or
reverse alignment should be performed. With normal alignment
the value 0.0f represents the left/top edge of the component
to be aligned. With reverse alignment, 0.0f represents the
right/bottom edge.
Parameters:
-
allocated - the total span to be allocated >= 0.
-
total - the total of the children requests.
-
children - the size requirements for each component.
-
offsets - the offset from 0 for each child where
the spans were allocated (determines placement of the span).
-
spans - the span allocated for each child to make the
total target span.
-
normal - when true, the alignment value 0.0f means
left/top; when false, it means right/bottom.
Since:
1.4