invoke

@JvmName(name = "invokeString")
operator fun Font?.invoke(text: () -> String): AnnotatedString(source)

Return

a new AnnotatedString with the contents of text and this font.


operator fun Font?.invoke(text: () -> AnnotatedString): AnnotatedString(source)

Return

sets the font for all segments without a font in AnnotatedString returned by text to this one.


@JvmName(name = "invokeString")
operator fun Color?.invoke(target: Target = Foreground, text: () -> String): AnnotatedString(source)

Return

a new AnnotatedString with the contents of text and painted (based on target) with this Color.


operator fun Color?.invoke(target: Target = Foreground, text: () -> AnnotatedString): AnnotatedString(source)
operator fun Paint?.invoke(target: Target = Foreground, text: () -> AnnotatedString): AnnotatedString(source)

Return

paints all unpainted segments (based on target) in AnnotatedString returned by text with this one.


@JvmName(name = "invokeString")
operator fun Paint?.invoke(target: Target = Foreground, text: () -> String): AnnotatedString(source)

Return

a new AnnotatedString with the contents of text and painted (based on target) with this one.


@JvmName(name = "invokeString")
operator fun TextDecoration?.invoke(text: () -> String): AnnotatedString(source)

Return

a new AnnotatedString with the contents of text and decorated with this one.


Return

decorates all undecorated segments in AnnotatedString returned by text with this one.


@JvmName(name = "invokeString")
operator fun TextDecoration.Line?.invoke(text: () -> String): AnnotatedString(source)

Return

a new AnnotatedString with the contents of text and decorated with this Line.


@JvmName(name = "invokeString")
operator fun Stroke?.invoke(text: () -> String): AnnotatedString(source)

Return

a new AnnotatedString with the contents of text and stroked with this one.


operator fun Stroke?.invoke(text: () -> AnnotatedString): AnnotatedString(source)

Return

strokes all unstroked segments in AnnotatedString returned by text with this one.