androidx.compose.ui.text.style
Classes
BaselineShift |
The amount by which the text is shifted up or down from current the baseline. |
TextDecoration |
Defines a horizontal line to be drawn on the text. |
TextGeometricTransform |
Define a geometric transformation on text. |
TextIndent |
Specify the indentation of a paragraph. |
Enums
ResolvedTextDirection |
Describes the directionality of a text. |
TextAlign |
Defines how to align text horizontally. |
TextDirection |
Defines the algorithm to be used while determining the text direction. |
TextOverflow |
How overflowing text should be handled. |
Top-level functions summary
BaselineShift |
lerp(start: BaselineShift, stop: BaselineShift, fraction: Float) Linearly interpolate two BaselineShifts. |
TextGeometricTransform |
lerp(start: TextGeometricTransform, stop: TextGeometricTransform, fraction: Float) |
TextIndent |
lerp(start: TextIndent, stop: TextIndent, fraction: Float) Linearly interpolate between two TextIndents. |
Top-level functions
lerp
@Stable fun lerp(
start: BaselineShift,
stop: BaselineShift,
fraction: Float
): BaselineShift
Linearly interpolate two BaselineShifts.
lerp
fun lerp(
start: TextGeometricTransform,
stop: TextGeometricTransform,
fraction: Float
): TextGeometricTransform
lerp
fun lerp(
start: TextIndent,
stop: TextIndent,
fraction: Float
): TextIndent
Linearly interpolate between two TextIndents.
The fraction argument represents position on the timeline, with 0.0 meaning that the interpolation has not started, returning start (or something equivalent to start), 1.0 meaning that the interpolation has finished, returning stop (or something equivalent to stop), and values in between meaning that the interpolation is at the relevant point on the timeline between start and stop. The interpolation can be extrapolated beyond 0.0 and 1.0, so negative values and values greater than 1.0 are valid.