Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
class CurveTextRenderer<T>(original: TextRenderer<T>, val path: VectorPath, val curve: Curve) : TransformedTextRenderer<T>
Link copied to clipboard
Link copied to clipboard
interface ITextRendererActions
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
data class RichTextDataPlacements(val placements: FastArrayList<RichTextDataPlacements.Placement> = fastArrayListOf()) : List<RichTextDataPlacements.Placement>
Link copied to clipboard
Link copied to clipboard
data class TextAlignment(val horizontal: HorizontalAlign, val vertical: VerticalAlign) : EnumLike<TextAlignment>
Link copied to clipboard
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
Functions
Link copied to clipboard
inline fun <T> TextRenderer<T>.aroundPath(out: VectorPath = VectorPath(), block: VectorPath.() -> Unit): CurveTextRenderer<T>
Link copied to clipboard
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
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
fun <T> TextRenderer<T>.transformed(transformation: (ITextRendererActions) -> ITextRendererActions): TransformedTextRenderer<T>
Link copied to clipboard