TextArea

fun TextArea(    posX: Number = 0,     posY: Number = 0,     width: Number = DEFAULT_TEXT_AREA_WIDTH,     height: Number = DEFAULT_TEXT_AREA_HEIGHT,     text: String = "",     prompt: String = "",     font: Font = Font(),     visual: Visual = ColorVisual(Color(240, 240, 240)))

Creates a TextArea.

Parameters

posX

Horizontal coordinate for this TextArea. Default: 0.

posY

Vertical coordinate for this TextArea. Default: 0.

width

Width for this TextArea. Default: DEFAULT_TEXT_AREA_WIDTH.

height

Height for this TextArea. Default: DEFAULT_TEXT_AREA_HEIGHT.

text

Initial text for this TextArea. Default: empty String.

prompt

Prompt for this TextArea. This gets displayed as a prompt to the user whenever the label is an empty string. Default: empty string.

font

Font to be used to display text.

visual

Visual to be used as a background. Defaults to a Light-gray ColorVisual.