@NotNull protected fun calculateLayoutElements(): java.util.List<TextDesignElement>
This method creates and returns all the TextDesignElement
s in this row based on the passed
size.width
. It must not rely on the height because this has not been calculated - in fact
the height has to be derived from the width within this method. That means that this method
should update size.height
to a height that it needs to draw its contents into.
Return
: An array of TextDesignElement
objects.