YogaLayoutOutput
data class YogaLayoutOutput(val yogaNode: YogaNode, val widthFromStyle: Float = YogaConstants.UNDEFINED, val heightFromStyle: Float = YogaConstants.UNDEFINED, _widthSpec: Int = UNSPECIFIED, _heightSpec: Int = UNSPECIFIED, _lastMeasuredSize: Long = Long.MIN_VALUE, _isCachedLayout: Boolean = false, _isDiffedLayout: Boolean = false, _layoutData: Any? = null, _wasMeasured: Boolean = false, _cachedMeasuresValid: Boolean = false, _measureHadExceptions: Boolean = false, _contentRenderUnit: LithoRenderUnit? = null, _hostRenderUnit: LithoRenderUnit? = null, _backgroundRenderUnit: LithoRenderUnit? = null, _foregroundRenderUnit: LithoRenderUnit? = null, _borderRenderUnit: LithoRenderUnit? = null, _diffNode: DiffNode? = null, _delegate: LayoutResult? = null, _nestedResult: LithoLayoutResult? = null, _adjustedBounds: Rect = Rect()) : LithoLayoutOutput
A wrapper around YogaNode that implements LithoLayoutOutput, which will be used internally by LithoYogaLayoutFunction.
Constructors
Link copied to clipboard
constructor(yogaNode: YogaNode, widthFromStyle: Float = YogaConstants.UNDEFINED, heightFromStyle: Float = YogaConstants.UNDEFINED, _widthSpec: Int = UNSPECIFIED, _heightSpec: Int = UNSPECIFIED, _lastMeasuredSize: Long = Long.MIN_VALUE, _isCachedLayout: Boolean = false, _isDiffedLayout: Boolean = false, _layoutData: Any? = null, _wasMeasured: Boolean = false, _cachedMeasuresValid: Boolean = false, _measureHadExceptions: Boolean = false, _contentRenderUnit: LithoRenderUnit? = null, _hostRenderUnit: LithoRenderUnit? = null, _backgroundRenderUnit: LithoRenderUnit? = null, _foregroundRenderUnit: LithoRenderUnit? = null, _borderRenderUnit: LithoRenderUnit? = null, _diffNode: DiffNode? = null, _delegate: LayoutResult? = null, _nestedResult: LithoLayoutResult? = null, _adjustedBounds: Rect = Rect())
Properties
Link copied to clipboard
In order to avoid redundant calculation that are happening in LithoYogaLayoutFunction.adjustRenderUnitBounds, we save the adjustments in a Rect that is initialised during layout, which is specifically inside LithoYogaLayoutFunction.onBoundsDefined.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard