TextLayoutInput
-
Cmn
class TextLayoutInput
The data class which holds the set of parameters of the text layout computation.
Summary
Public constructors |
|
|---|---|
TextLayoutInput( |
Cmn
|
This function is deprecated. Font.ResourceLoader is replaced with FontFamily.Resolver |
Cmn
|
Public functions |
||
|---|---|---|
TextLayoutInput |
This function is deprecated. Font.ResourceLoader is deprecated |
Cmn
|
open operator Boolean |
Cmn
|
|
open Int |
hashCode() |
Cmn
|
open String |
toString() |
Cmn
|
Public properties |
||
|---|---|---|
Constraints |
The minimum width provided while calculating this text layout. |
Cmn
|
Density |
The density param used for computing this text layout. |
Cmn
|
FontFamily.Resolver |
The font resolver used for computing this text layout. |
Cmn
|
LayoutDirection |
The layout direction used for computing this text layout. |
Cmn
|
Int |
The maxLines param used for computing this text layout. |
Cmn
|
TextOverflow |
The overflow param used for computing this text layout |
Cmn
|
List<AnnotatedString.Range<Placeholder>> |
A list of |
Cmn
|
Font.ResourceLoader |
This property is deprecated. Replaced with FontFamily.Resolver |
Cmn
|
Boolean |
The maxLines param used for computing this text layout. |
Cmn
|
TextStyle |
The text layout used for computing this text layout. |
Cmn
|
AnnotatedString |
The text used for computing text layout. |
Cmn
|
Public constructors
TextLayoutInput
TextLayoutInput(
text: AnnotatedString,
style: TextStyle,
placeholders: List<AnnotatedString.Range<Placeholder>>,
maxLines: Int,
softWrap: Boolean,
overflow: TextOverflow,
density: Density,
layoutDirection: LayoutDirection,
fontFamilyResolver: FontFamily.Resolver,
constraints: Constraints
)
TextLayoutInput
TextLayoutInput(
text: AnnotatedString,
style: TextStyle,
placeholders: List<AnnotatedString.Range<Placeholder>>,
maxLines: Int,
softWrap: Boolean,
overflow: TextOverflow,
density: Density,
layoutDirection: LayoutDirection,
resourceLoader: Font.ResourceLoader,
constraints: Constraints
)
Public functions
copy
funcopy(
text: AnnotatedString = this.text,
style: TextStyle = this.style,
placeholders: List<AnnotatedString.Range<Placeholder>> = this.placeholders,
maxLines: Int = this.maxLines,
softWrap: Boolean = this.softWrap,
overflow: TextOverflow = this.overflow,
density: Density = this.density,
layoutDirection: LayoutDirection = this.layoutDirection,
resourceLoader: Font.ResourceLoader = this.resourceLoader,
constraints: Constraints = this.constraints
): TextLayoutInput
Public properties
constraints
val constraints: Constraints
The minimum width provided while calculating this text layout.
fontFamilyResolver
val fontFamilyResolver: FontFamily.Resolver
The font resolver used for computing this text layout.
layoutDirection
val layoutDirection: LayoutDirection
The layout direction used for computing this text layout.
placeholders
val placeholders: List<AnnotatedString.Range<Placeholder>>
A list of Placeholders inserted into text layout that reserves space to embed icons or custom emojis. A list of bounding boxes will be returned in TextLayoutResult.placeholderRects that corresponds to this input.