ly.img.android.pesdk.backend.text_design.model.row.defaults / TextDesignRow / calculateLayoutElements

calculateLayoutElements

protected abstract fun calculateLayoutElements(): MutableList<TextDesignElement>

This method creates and returns all the TextDesignElements 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.