Implements
- PUXI.ILayoutManager
Methods
-
Zeros the measured dimensions.
-
Clears the left, top, right, bottom, and center widget lists.
-
Ensures all widgets in the list measured their dimensions below the region width & height. Widgets that are too large are remeasured in the those limits (using
MeasureMode.AT_MOST
).This will handle widgets that have "FILL_PARENT" width or height.
Name Type Description list
Array.<PUXI.Widget> measuredRegionWidth
number measuredRegionHeight
number -
Indexes the list of left, top, right, bottom, and center widget lists.
-
This measures the list of widgets given the constraints. The max width and height amongst the children is returned.
Name Type Description list
Array.<PUXI.Widget> maxWidth
number maxHeight
number widthMode
PUXI.MeasureMode heightMode
PUXI.MeasureMode Returns:
Type Description Array.<number> - [width, height, widthFixedLowerBound, heightFixedLowerBound] - the max. width and height amongst children. Also, the minimum required width/height for the region (as defined in layout-options).
-
Name Type Description maxWidth
number maxHeight
number widthMode
PUXI.MeasureMode heightMode
PUXI.MeasureMode