Class

StyleProperty

Identifies a style property used in style definitions.

Source set: Common
public open class StyleProperty<T>(
    public val name: String,
    public val isLocal: Boolean,
    public val defaultValue: () -> T,
)

Identifies a style property used in style definitions.

Parameters

T type of value held by the property
name debug/tooling name for the property
isLocal whether this property inherits down the layout tree
defaultValue provider for the fallback value when not set

Functions

lerp

Source set: Common
public open fun lerp(a: T, b: T, t: Float): T

Interpolates between value a and b at fraction t.

Parameters

a starting value at t = 0
b ending value at t = 1
t interpolation fraction, typically between 0 and 1

Return

interpolated value between a and b

toString

Source set: Common
override fun toString(): String

Content updated: