RichTextData
data class RichTextData(val lines: List<RichTextData.Line>, val defaultStyle: RichTextData.Style = lines.firstOrNull()?.defaultStyle ?: Style.DEFAULT) : List<RichTextData.Line> , Extra
Constructors
Link copied to clipboard
constructor(text: String, font: Font = Style.DEFAULT.font, textSize: Double = Style.DEFAULT.textSize, italic: Boolean = Style.DEFAULT.italic, bold: Boolean = Style.DEFAULT.bold, underline: Boolean = Style.DEFAULT.underline, color: RGBA? = Style.DEFAULT.color, canBreak: Boolean = Style.DEFAULT.canBreak)
constructor(lines: List<RichTextData.Line>, defaultStyle: RichTextData.Style = lines.firstOrNull()?.defaultStyle ?: Style.DEFAULT)
Types
Link copied to clipboard
data class Line(val nodes: List<RichTextData.Node>, val defaultLineStyle: RichTextData.Style? = null) : Extra
Link copied to clipboard
data class TextNode(val text: String, val style: RichTextData.Style = Style.DEFAULT) : RichTextData.Node, Extra
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun limitHeight(maxHeight: Double, includePartialLines: Boolean = true, includeFirstLineAlways: Boolean = true): RichTextData
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun RichTextData.place(bounds: Rectangle, wordWrap: Boolean = true, includePartialLines: Boolean = false, ellipsis: String? = null, fill: Paint? = null, stroke: Stroke? = null, align: TextAlignment = TextAlignment.TOP_LEFT, includeFirstLineAlways: Boolean = true, out: RichTextDataPlacements = RichTextDataPlacements()): RichTextDataPlacements
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard