Package-level declarations

Types

Link copied to clipboard
class CurveTextRenderer<T>(original: TextRenderer<T>, val path: VectorPath, val curve: Curve) : TransformedTextRenderer<T>
Link copied to clipboard
inline class HorizontalAlign(val ratio: Double) : EnumLike<HorizontalAlign>
Link copied to clipboard
Link copied to clipboard
data class RichTextData(    val lines: List<RichTextData.Line>,     val defaultStyle: RichTextData.Style = lines.firstOrNull()?.defaultStyle ?: Style.DEFAULT) : List<RichTextData.Line> , Extra
Link copied to clipboard
Link copied to clipboard
data class TextAlignment(val horizontal: HorizontalAlign, val vertical: VerticalAlign) : EnumLike<TextAlignment>
Link copied to clipboard
interface TextRenderer<T>
Link copied to clipboard
Link copied to clipboard
open class TransformedTextRenderer<T>(    val original: TextRenderer<T>,     val transformation: (ITextRendererActions) -> ITextRendererActions) : TextRenderer<T>
Link copied to clipboard
inline class VerticalAlign(val ratio: Double) : EnumLike<VerticalAlign>

Functions

Link copied to clipboard
fun RichTextData.bounds(maxHeight: Int = Int.MAX_VALUE): Rectangle
Link copied to clipboard
fun CreateStringTextRenderer(    getVersion: () -> Int = { 0 },     handler: ITextRendererActions.(reader: WStringReader, c: Int, g: GlyphMetrics, advance: Double) -> Unit): TextRenderer<String>
Link copied to clipboard
fun CreateWStringTextRenderer(    getVersion: () -> Int = { 0 },     handler: ITextRendererActions.(reader: WStringReader, c: Int, g: GlyphMetrics, advance: Double) -> Unit): TextRenderer<WString>
Link copied to clipboard
inline fun <T> DefaultTextRenderer(): TextRenderer<out Any>
Link copied to clipboard
fun Context2d.drawRichText(    text: RichTextData,     bounds: Rectangle = Rectangle(0, 0, width, height),     wordWrap: Boolean = true,     includePartialLines: Boolean = false,     ellipsis: String? = null,     fill: Paint? = null,     stroke: Stroke? = null,     align: TextAlignment = TextAlignment.TOP_LEFT,     includeFirstLineAlways: Boolean = true,     textRangeStart: Int = 0,     textRangeEnd: Int = Int.MAX_VALUE): Int
Link copied to clipboard
fun RichTextData.Companion.fromHTML(html: String, style: RichTextData.Style = RichTextData.Style.DEFAULT): RichTextData
Link copied to clipboard
operator fun <T> TextRenderer<T>.invoke(actions: ITextRendererActions, text: T, size: Double, defaultFont: Font)
Link copied to clipboard
fun <T> TextRenderer<T>.measure(text: T, size: Double, defaultFont: Font): BoundBuilderTextRendererActions
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
fun <T> VectorBuilder.text(    text: T,     font: VectorFont,     textSize: Double = 16.0,     pos: Point = Point.ZERO,     align: TextAlignment = TextAlignment.BASELINE_LEFT,     renderer: TextRenderer<T> = DefaultStringTextRenderer as TextRenderer<T>)
Link copied to clipboard
Link copied to clipboard