Package-level declarations

Types

Link copied to clipboard

Receiver for buildStringConverter block.

Functions

Link copied to clipboard
fun TextFlow.append(value: Any?): TextFlow
fun TextFlow.append(value: String?): TextFlow

Appends value to this flow.

Link copied to clipboard
fun TextFlow.appendLine(): TextFlow

Appends a line separator to this flow.

inline fun TextFlow.appendLine(value: Any?): TextFlow
inline fun TextFlow.appendLine(value: String?): TextFlow

Appends value to this flow, followed by a line separator.

Link copied to clipboard
inline fun <T> buildStringConverter(builderAction: StringConverterBuilder<T>.() -> Unit): StringConverter<T>

Builds new string converter.

Link copied to clipboard
inline fun TextFlow.clear(): TextFlow

Clears the content of this flow making it empty.

Link copied to clipboard
inline fun fontOf(family: String = "System", weight: FontWeight = FontWeight.NORMAL, posture: FontPosture = FontPosture.REGULAR, size: Double = Font.getDefault().size): Font

Composes a font from configuration using Double size.

fun fontOf(family: String = "System", weight: FontWeight = FontWeight.NORMAL, posture: FontPosture = FontPosture.REGULAR, size: Int): Font

Composes a font from configuration using Int size.

Link copied to clipboard
inline operator fun <T> StringConverter<T>.get(s: String): T

Converts the string provided into an object defined by the specific converter.

Link copied to clipboard
inline operator fun <T> StringConverter<T>.invoke(obj: T): String

Converts the object provided into its string form.

Link copied to clipboard
operator fun TextFlow.set(index: Int, value: String)

Sets the character at the specified index to the specified value.

Properties

Link copied to clipboard
val Int.pt: Font

Returns a default font with size of this Int number.

val Double.pt: Font

Returns a default font with size of this Double number.