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(vararg lines: RichTextData.Line)
constructor(text: String, style: RichTextData.Style)
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
object Companion
Link copied to clipboard
data class Line(val nodes: List<RichTextData.Node>, val defaultLineStyle: RichTextData.Style? = null) : Extra
Link copied to clipboard
interface Node
Link copied to clipboard
data class Style(val font: Font, val textSize: Double = 16.0, val italic: Boolean = false, val bold: Boolean = false, val underline: Boolean = false, val color: RGBA? = null, val canBreak: Boolean = true)
Link copied to clipboard
data class TextNode(val text: String, val style: RichTextData.Style = Style.DEFAULT) : RichTextData.Node, Extra

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override var extra: ExtraType
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val size: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun RichTextData.bounds(maxHeight: Int = Int.MAX_VALUE): Rectangle
Link copied to clipboard
fun Iterable<Cancellable>.cancel(e: Throwable = CancellationException(""))
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open operator override fun contains(element: RichTextData.Line): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<RichTextData.Line>): Boolean
Link copied to clipboard
inline suspend fun <T> Iterable<Signal<T>>.executeAndWaitAnySignal(callback: () -> Unit): Pair<Signal<T>, T>
Link copied to clipboard
open operator override fun get(index: Int): RichTextData.Line
Link copied to clipboard
inline fun <T> Iterable<Vfs.Attribute>.get(): T?
operator fun Iterable<Xml>.get(name: String): Iterable<Xml>
Link copied to clipboard
Link copied to clipboard
open override fun indexOf(element: RichTextData.Line): Int
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): Iterator<RichTextData.Line>
Link copied to clipboard
open override fun lastIndexOf(element: RichTextData.Line): Int
Link copied to clipboard
fun limit(maxLineWidth: Double = Double.POSITIVE_INFINITY, maxHeight: Double = Double.POSITIVE_INFINITY, includePartialLines: Boolean = true, ellipsis: String? = null, trimSpaces: Boolean = false, includeFirstLineAlways: Boolean = true): RichTextData
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
operator fun plus(other: RichTextData): RichTextData
Link copied to clipboard
suspend fun List<Bitmap>.showImagesAndWait(kind: Int = 0)
Link copied to clipboard
fun Iterable<Xml>.str(name: String, defaultValue: String = ""): String
Link copied to clipboard
open override fun subList(fromIndex: Int, toIndex: Int): List<RichTextData.Line>
Link copied to clipboard
Link copied to clipboard
suspend fun <T> Iterable<T>.toChannel(): ReceiveChannel<T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun Iterable<Signal<*>>.waitOne(): Any?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun wordWrap(maxLineWidth: Double, splitLetters: Boolean = false): RichTextData