ChildTransform

data class ChildTransform(val scale: Double, val offset: DoubleOffset = DoubleOffset.Zero)(source)

Immutable uniform transform from one placed child's local coordinates into its parent's coordinates.

A child point is mapped by multiplying both axes by ChildTransform.scale, then adding ChildTransform.offset and the child's ordinary integer placement. The runtime composes this transform through the effective descendant subtree for geometry, painting, clipping, input, focus visibility, and semantics. The value owns no external resources and is safe to share between threads.

Throws

when ChildTransform.scale is not finite and positive.

Constructors

Link copied to clipboard
constructor(scale: Double, offset: DoubleOffset = DoubleOffset.Zero)

Types

Link copied to clipboard
object Companion

Common child transforms.

Properties

Link copied to clipboard

finite displacement applied after scaling and before the child's ordinary placement.

Link copied to clipboard

finite positive multiplier applied equally to both axes.