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 curColcurLine
int curLinecursorHandlers_
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 readOnlytabWidth_
int tabWidth_validator_
(string) => bool validator_validatorMessage_
string validatorMessage_widthDirty_
bool widthDirty_Methods
afterEdit
afterEdit(bool layoutChanged) -> voidafterHorizontalMove
afterHorizontalMove() -> voidafterVerticalMove
afterVerticalMove() -> voidbackspace
backspace() -> voidcellAt
cellAt(int line, int scalarIdx) -> intcontentDesired
cursorPos
cursorPos() -> Point | NonedeleteForward
deleteForward() -> voiddigits
digits(int n) -> intensureCursorVisible
ensureCursorVisible() -> voidfireChange
fireChange() -> voidfireCursor
fireCursor() -> voidgrowCache
growCache(int line) -> boolgutter
gutter(bool on) -> TextAreagutterCells
gutterCells() -> inthandleKey
handleKey(KeyEvent e) -> voidhandleMouse
handleMouse(MouseEvent e) -> voidhandlePaste
handlePaste(PasteEvent e) -> voidinsertChar
insertChar(char c) -> voidinsertString
insertString(string s) -> voidinsertTab
insertTab() -> voidlineChars
lineChars(int line) -> Array<char>lineCount
lineCount() -> intlineLen
lineLen(int line) -> intlongestLineCells
longestLineCells() -> intmoveDocEnd
moveDocEnd() -> voidmoveDocStart
moveDocStart() -> voidmoveDown
moveDown() -> voidmoveEnd
moveEnd() -> voidmoveHome
moveHome() -> voidmoveLeft
moveLeft() -> voidmoveRight
moveRight() -> voidmoveUp
moveUp() -> voidoffChange
offChange(int token) -> voidoffCursor
offCursor(int token) -> voidonChange
onChange((string) => void h) -> intonCursor
onCursor((int, int) => void h) -> intpageDown
pageDown(int viewH) -> voidpageUp
pageUp(int viewH) -> voidpaintContent
paintContent(Surface s) -> voidplaceCursorAt
placeCursorAt(int px, int py) -> voidreadOnly
readOnly(bool v) -> TextAreascalarAtCell
scalarAtCell(int line, int targetCell) -> intsetText
setText(string t) -> voidsetValue
setValue(string t) -> voidsliceStr
sliceStr(Array<char> cs, int from, int len) -> stringspaces
spaces(int n) -> stringsplitLine
splitLine() -> voidtabWidth
tabWidth(int n) -> TextAreatext
text() -> stringupdateContentSize
updateContentSize() -> voidvalidate
validate() -> boolvalidationMessage
validationMessage() -> stringvalidator
validator((string) => bool check, string message) -> TextAreavalue
value() -> stringviewHeight
viewHeight() -> intwordJumpLeft
wordJumpLeft(Array<char> cs, int from) -> intwordJumpRight
wordJumpRight(Array<char> cs, int from) -> intwordLeft
wordLeft() -> voidwordRight
wordRight() -> void