YogaLayoutOutput
data class YogaLayoutOutput(val yogaNode: YogaNode, val widthFromStyle: YogaValue, val heightFromStyle: YogaValue, val minWidthFromStyle: YogaValue, val maxWidthFromStyle: YogaValue, val minHeightFromStyle: YogaValue, val maxHeightFromStyle: YogaValue, _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, _boundsDefined: Boolean = false, _contentRenderUnit: LithoRenderUnit? = null, _hostRenderUnit: LithoRenderUnit? = null, _backgroundRenderUnit: LithoRenderUnit? = null, _foregroundRenderUnit: LithoRenderUnit? = null, _borderRenderUnit: LithoRenderUnit? = null, _diffNode: DiffNode? = null, _delegate: LayoutResult? = null, _actualDeferredNodeResult: LithoLayoutResult? = null, _adjustedBounds: Rect = Rect(), _effects: List<Attachable>? = null) : LithoLayoutOutput
A wrapper around YogaNode that implements LithoLayoutOutput, which will be used internally by LithoYogaLayoutFunction.
Constructors
Link copied to clipboard
constructor(yogaNode: YogaNode, widthFromStyle: YogaValue, heightFromStyle: YogaValue, minWidthFromStyle: YogaValue, maxWidthFromStyle: YogaValue, minHeightFromStyle: YogaValue, maxHeightFromStyle: YogaValue, _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, _boundsDefined: Boolean = false, _contentRenderUnit: LithoRenderUnit? = null, _hostRenderUnit: LithoRenderUnit? = null, _backgroundRenderUnit: LithoRenderUnit? = null, _foregroundRenderUnit: LithoRenderUnit? = null, _borderRenderUnit: LithoRenderUnit? = null, _diffNode: DiffNode? = null, _delegate: LayoutResult? = null, _actualDeferredNodeResult: LithoLayoutResult? = null, _adjustedBounds: Rect = Rect(), _effects: List<Attachable>? = null)
Properties
Link copied to clipboard
Link copied to clipboard
To avoid redundant calculations in LithoYogaLayoutFunction.adjustRenderUnitBounds, we save the adjustments in a Rect that is initialised during layout, 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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard