openrndr / org.openrndr.text / Writer

Writer

class Writer (source)

Constructors

<init>

Writer(drawerRef: Drawer?)

Properties

box

var box: Rectangle

cursor

var cursor: Cursor

drawerRef

val drawerRef: Drawer?

drawStyle

var drawStyle: DrawStyle

ellipsis

var ellipsis: String?

leading

var leading: Double

style

var style: WriteStyle

styleStack

val styleStack: Stack<WriteStyle>

tracking

var tracking: Double

Functions

gaplessNewLine

fun gaplessNewLine(): Unit

move

fun move(x: Double, y: Double): Unit

newLine

fun newLine(): Unit

text

fun text(text: String, visible: Boolean = true): Unit

textWidth

fun textWidth(text: String): Double