LEVIATHAN v962456e · 962456eee1

moby

class TextArea

since 0.1.0-alpha.1linux

bases
Focusable, Scrollable, Styleable, IMultiLine, IValidatable

Constructors

new

new()

Fields

changeHandlers_

Array<(string) => void> changeHandlers_

changeTokens_

Array<int> changeTokens_

curCol

int curCol

curLine

int curLine

cursorHandlers_

Array<(int, int) => void> cursorHandlers_

cursorTokens_

Array<int> cursorTokens_

desiredCol_

int desiredCol_

gutter_

bool gutter_

hasValidator_

bool hasValidator_

lastValidationMessage_

string lastValidationMessage_

lines_

Array<string> lines_

longestCells_

int longestCells_

readOnly

bool readOnly

tabWidth_

int tabWidth_

validator_

(string) => bool validator_

validatorMessage_

string validatorMessage_

widthDirty_

bool widthDirty_

Methods

afterEdit

afterEdit(bool layoutChanged) -> void

afterHorizontalMove

afterHorizontalMove() -> void

afterVerticalMove

afterVerticalMove() -> void

backspace

backspace() -> void

cellAt

cellAt(int line, int scalarIdx) -> int

contentDesired

contentDesired(Size avail) -> Size

cursorPos

cursorPos() -> Point | None

deleteForward

deleteForward() -> void

digits

digits(int n) -> int

ensureCursorVisible

ensureCursorVisible() -> void

fireChange

fireChange() -> void

fireCursor

fireCursor() -> void

growCache

growCache(int line) -> bool

gutter

gutter(bool on) -> TextArea

gutterCells

gutterCells() -> int

handleKey

handleKey(KeyEvent e) -> void

handleMouse

handleMouse(MouseEvent e) -> void

handlePaste

handlePaste(PasteEvent e) -> void

insertChar

insertChar(char c) -> void

insertString

insertString(string s) -> void

insertTab

insertTab() -> void

lineChars

lineChars(int line) -> Array<char>

lineCount

lineCount() -> int

lineLen

lineLen(int line) -> int

longestLineCells

longestLineCells() -> int

moveDocEnd

moveDocEnd() -> void

moveDocStart

moveDocStart() -> void

moveDown

moveDown() -> void

moveEnd

moveEnd() -> void

moveHome

moveHome() -> void

moveLeft

moveLeft() -> void

moveRight

moveRight() -> void

moveUp

moveUp() -> void

offChange

offChange(int token) -> void

offCursor

offCursor(int token) -> void

onChange

onChange((string) => void h) -> int

onCursor

onCursor((int, int) => void h) -> int

pageDown

pageDown(int viewH) -> void

pageUp

pageUp(int viewH) -> void

paintContent

paintContent(Surface s) -> void

placeCursorAt

placeCursorAt(int px, int py) -> void

readOnly

readOnly(bool v) -> TextArea

scalarAtCell

scalarAtCell(int line, int targetCell) -> int

setText

setText(string t) -> void

setValue

setValue(string t) -> void

sliceStr

sliceStr(Array<char> cs, int from, int len) -> string

spaces

spaces(int n) -> string

splitLine

splitLine() -> void

tabWidth

tabWidth(int n) -> TextArea

text

text() -> string

updateContentSize

updateContentSize() -> void

validate

validate() -> bool

validationMessage

validationMessage() -> string

validator

validator((string) => bool check, string message) -> TextArea

value

value() -> string

viewHeight

viewHeight() -> int

wordJumpLeft

wordJumpLeft(Array<char> cs, int from) -> int

wordJumpRight

wordJumpRight(Array<char> cs, int from) -> int

wordLeft

wordLeft() -> void

wordRight

wordRight() -> void