DiffNode

interface DiffNode : Cloneable

A lightweight representation of a layout node, used to cache measurements between two Layout tree calculations.

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val childCount: Int
Link copied to clipboard
abstract val children: List<DiffNode>
Link copied to clipboard
abstract val component: Component
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract var delegate: LayoutResult?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract var lastHeightSpec: Int
Link copied to clipboard
abstract var lastMeasuredHeight: Int

The last value the measure function associated with this node Component returned for the height. This is used together with lastHeightSpec to implement measure caching. Also sets the last value the measure function associated with this node Component returned for the height.

Link copied to clipboard
abstract var lastMeasuredWidth: Int

The last value the measure function associated with this node Component returned for the width. This is used together with lastWidthSpec to implement measure caching. Also sets the last value the measure function associated with this node Component returned for the width.

Link copied to clipboard
abstract var lastWidthSpec: Int
Link copied to clipboard
abstract var layoutData: Any?
Link copied to clipboard
abstract var primitive: Primitive?
Link copied to clipboard
Link copied to clipboard
abstract var visibilityOutput: VisibilityOutput?

Functions

Link copied to clipboard
abstract fun addChild(node: DiffNode)
Link copied to clipboard
abstract fun getChildAt(i: Int): DiffNode?