TextPainter
Kotlin
|Java
object TextPainter
kotlin.Any | |
↳ | androidx.compose.ui.text.TextPainter |
Summary
Public methods | |
---|---|
Unit |
paint(canvas: Canvas, textLayoutResult: TextLayoutResult) Paints the text onto the given canvas. |
Public methods
paint
fun paint(
canvas: Canvas,
textLayoutResult: TextLayoutResult
): Unit
Paints the text onto the given canvas.
Parameters | |
---|---|
canvas: Canvas | a canvas to be drawn |
textLayoutResult: TextLayoutResult | a result of text layout |