Package-level declarations

Types

Link copied to clipboard
class Cursor(var x: Double = 0.0, var y: Double = 0.0)

Represents a 2D coordinate or position in a Cartesian space.

Link copied to clipboard
data class TextToken(val token: String, val x: Double, val y: Double, val width: Double, val tracking: Double)

Represents a text token with specific positional and formatting attributes.

Link copied to clipboard
class TextWriter(val drawerRef: Drawer?)
Link copied to clipboard

Represents the styling options for text rendering in a TextWriter.

Functions

Link copied to clipboard
fun <T> writer(drawer: Drawer, f: TextWriter.() -> T): T

Executes a block of code using a TextWriter instance initialized with the provided Drawer. The block is guaranteed to be invoked exactly once.

Link copied to clipboard
fun <T> Program.writer(f: TextWriter.() -> T): T
@JvmName(name = "drawerWriter")
fun <T> Drawer.writer(f: TextWriter.() -> T): T