arrange
Horizontally places the layout children.
Parameters
total Size
Available space that can be occupied by the children, in pixels.
sizes
An array of sizes of all children, in pixels.
out Positions
An array of the size of sizes that returns the calculated positions relative to the left, in pixels.