Interface: IMeasurable

IMeasurable

Any renderable entity that can be used in a widget hierarchy must be measurable.

Methods

getMeasuredHeight ()number

Returns:
Type Description
number
  • the measured height of the entity after a onMeasure call

getMeasuredWidth ()number

Returns:
Type Description
number
  • the measured width of the entity after a onMeasure call

onMeasure (maxWidth, maxHeight, widthMode, heightMode)

Measures its width & height based on the passed constraints.

Name Type Description
maxWidth number
maxHeight number
widthMode PUXI.MeasureMode
heightMode PUXI.MeasureMode