MultiParagraphIntrinsics

class MultiParagraphIntrinsics : ParagraphIntrinsics
kotlin.Any
   ↳ androidx.ui.text.MultiParagraphIntrinsics

Calculates and provides the intrinsic width and height of text that contains ParagraphStyle.

Summary

Public constructors

<init>(annotatedString: AnnotatedString, textStyle: TextStyle, paragraphStyle: ParagraphStyle, density: Density, resourceLoader: Font.ResourceLoader)

Calculates and provides the intrinsic width and height of text that contains ParagraphStyle.

Properties

AnnotatedString

Float

Returns the smallest width beyond which increasing the width never decreases the height.

Float

The width for text if all soft wrap opportunities were taken.

Public constructors

<init>

MultiParagraphIntrinsics(
    annotatedString: AnnotatedString,
    textStyle: TextStyle,
    paragraphStyle: ParagraphStyle,
    density: Density,
    resourceLoader: Font.ResourceLoader)

Calculates and provides the intrinsic width and height of text that contains ParagraphStyle.

See Also

Exceptions
IllegalArgumentException if ParagraphStyle.textDirectionAlgorithm is not set

Properties

annotatedString

val annotatedString: AnnotatedString

maxIntrinsicWidth

val maxIntrinsicWidth: Float

Returns the smallest width beyond which increasing the width never decreases the height.

minIntrinsicWidth

val minIntrinsicWidth: Float

The width for text if all soft wrap opportunities were taken.