Paragraph

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
expect open val isClosed: Boolean

Check if underlying resource is closed.

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

Functions

Link copied to clipboard
open override fun close()

Free underlying native resource, peer is useless afterwards.

Link copied to clipboard
Link copied to clipboard
fun getRectsForRange(start: Int, end: Int, rectHeightMode: RectHeightMode, rectWidthMode: RectWidthMode): Array<TextBox>

Returns a vector of bounding boxes that enclose all text between start and end char indices, including start and excluding end.

Link copied to clipboard
Link copied to clipboard
fun getWordBoundary(offset: Int): IRange
Link copied to clipboard
fun layout(width: Float): Paragraph
Link copied to clipboard
Link copied to clipboard
fun paint(canvas: Canvas?, x: Float, y: Float): Paragraph
Link copied to clipboard
expect open override fun toString(): String
Link copied to clipboard
Link copied to clipboard
fun updateBackgroundPaint(from: Int, to: Int, paint: Paint?): Paragraph

from and to are ignored by skia and change applies to the whole paragraph text

Link copied to clipboard
fun updateFontSize(from: Int, to: Int, size: Float): Paragraph

from and to are ignored by skia and change applies to the whole paragraph text see: https://github.com/JetBrains/skia/blob/51072f3e6d263eeffed4c3038655ab1bf9cf8439/modules/skparagraph/src/ParagraphImpl.cpp#L1069

Link copied to clipboard
fun updateForegroundPaint(from: Int, to: Int, paint: Paint?): Paragraph

from and to are ignored by skia and change applies to the whole paragraph text