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())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val adjustedBounds: Rect

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
open override val borderBottom: Int
Link copied to clipboard
open override val borderLeft: Int
Link copied to clipboard
open override val borderRenderUnit: LithoRenderUnit?
Link copied to clipboard
open override val borderRight: Int
Link copied to clipboard
open override val borderTop: Int
Link copied to clipboard
open override val cachedMeasuresValid: Boolean
Link copied to clipboard
open override val contentHeight: Int
Link copied to clipboard
Link copied to clipboard
open override val contentWidth: Int
Link copied to clipboard
open override val delegate: LayoutResult?
Link copied to clipboard
open override val diffNode: DiffNode?
Link copied to clipboard
Link copied to clipboard
open override val height: Int
Link copied to clipboard
Link copied to clipboard
open override val heightSpec: Int
Link copied to clipboard
open override val hostRenderUnit: LithoRenderUnit?
Link copied to clipboard
open override val isCachedLayout: Boolean
Link copied to clipboard
open override val lastMeasuredSize: Long
Link copied to clipboard
open override val layoutData: Any?
Link copied to clipboard
open override val layoutDirection: LayoutDirection
Link copied to clipboard
open override val measureHadExceptions: Boolean
Link copied to clipboard
open override val nestedResult: LithoLayoutResult?
Link copied to clipboard
open override val paddingBottom: Int
Link copied to clipboard
open override val paddingLeft: Int
Link copied to clipboard
open override val paddingRight: Int
Link copied to clipboard
open override val paddingTop: Int
Link copied to clipboard
open override val wasMeasured: Boolean
Link copied to clipboard
open override val width: Int
Link copied to clipboard
Link copied to clipboard
open override val widthSpec: Int
Link copied to clipboard
open override val x: Int
Link copied to clipboard
open override val y: Int
Link copied to clipboard
val yogaNode: YogaNode

Functions

Link copied to clipboard
fun clear()
Link copied to clipboard
fun setSizeSpec(widthSpec: Int, heightSpec: Int)