Known direct subclasses
ProvidableStyleProperty

Defines a style property whose value can be provided within a style scope.


Identifies a style property used in style definitions.

Parameters
<T : Any?>

type of value held by the property

Summary

Public constructors

<T : Any?> StyleProperty(name: String, isLocal: Boolean, defaultValue: () -> T)
Cmn

Public functions

open T
lerp(a: T, b: T, t: Float)

Interpolates between value a and b at fraction t.

Cmn
open String
Cmn

Public properties

() -> T

provider for the fallback value when not set

Cmn
Boolean

whether this property inherits down the layout tree

Cmn
String

debug/tooling name for the property

Cmn

Public constructors

StyleProperty

<T : Any?> StyleProperty(name: String, isLocal: Boolean, defaultValue: () -> T)
Parameters
<T : Any?>

type of value held by the property

name: String

debug/tooling name for the property

isLocal: Boolean

whether this property inherits down the layout tree

defaultValue: () -> T

provider for the fallback value when not set

Public functions

lerp

open fun lerp(a: T, b: T, t: Float): T

Interpolates between value a and b at fraction t.

Parameters
a: T

starting value at t = 0

b: T

ending value at t = 1

t: Float

interpolation fraction, typically between 0 and 1

Returns
T

interpolated value between a and b

toString

open fun toString(): String

Public properties

defaultValue

val defaultValue: () -> T

provider for the fallback value when not set

isLocal

val isLocalBoolean

whether this property inherits down the layout tree

name

val nameString

debug/tooling name for the property