LayoutState

The main role of LayoutState is to hold the output of layout calculation. This includes mountable outputs and visibility outputs. A centerpiece of the class is setSizeAfterMeasureAndCollectResults which prepares the before-mentioned outputs based on the provided LithoNode for later use in MountState.

This needs to be accessible to statically mock the class in tests.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Gets a group of LayoutOutput given transition key
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getHeight(): Int
Link copied to clipboard
open fun getIncrementalMountOutputForId(id: Long): IncrementalMountOutput
Link copied to clipboard
open fun getIncrementalMountOutputs(): Collection<IncrementalMountOutput>
Link copied to clipboard
open fun getMountableOutputAt(index: Int): RenderTreeNode
Link copied to clipboard
Link copied to clipboard
open fun getOutputsOrderedByBottomBounds(): ArrayList<IncrementalMountOutput>
Link copied to clipboard
open fun getOutputsOrderedByTopBounds(): ArrayList<IncrementalMountOutput>
Link copied to clipboard
open fun getPositionForId(layoutOutputId: Long): Int
Link copied to clipboard
Link copied to clipboard
open fun getRootLayoutResult(): LayoutResult
Link copied to clipboard
open fun getRootName(): String
Link copied to clipboard
Link copied to clipboard
open fun getSizeConstraints(): SizeConstraints
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getTracer(): Systracer
Link copied to clipboard
Gets a mapping from transition ids to a group of LayoutOutput.
Link copied to clipboard
Link copied to clipboard
open fun getTreeId(): Int
Link copied to clipboard
Link copied to clipboard
open fun getVisibilityBoundsTransformer(): VisibilityBoundsTransformer
Link copied to clipboard
open fun getVisibilityOutputs(): List<VisibilityOutput>
Link copied to clipboard
open fun getWidth(): Int
Link copied to clipboard
open fun isEmpty(): Boolean
Link copied to clipboard
open fun isFromSyncLayout(source: Int): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isNullOrEmpty(@Nullable layoutState: LayoutState): Boolean
Link copied to clipboard
Return true if this result calculated from a TreeFuture is partial.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setNeedsToRerunTransitions(needsToRerunTransitions: Boolean)
Link copied to clipboard
open fun toRenderTree(): RenderTree