Create a text input.
Point where selection ends. Corresponds to caret position.
Remove a character before the caret. Same as chop.
Remove a word before the caret.
Start a new line
Get the current buffer.
Index of the character, byte-wise.
Get the current line
Change the current line. Moves the cursor to the end of the newly created line.
Visual position of the caret, relative to the top-left corner of the input.
Move the caret to the given screen position (viewport space).
Move the caret to the end of the input
Move the caret to the end of the line.
Move the caret to the beginning of the line. This function perceives the line visually, so if the text wraps, it will go to the beginning of the visible line, instead of the hard line break.
Move the caret to mouse position.
Move the caret to the beginning of the input
Erase any character preceding the caret, or the next one.
Erase last word before the caret, or the first word after.
Clear the value of this input field, making it empty.
Clear the undo/redo action history.
Get the column the given index (or the cursor, if omitted) is on.
Copy selected text to clipboard.
Cut selected text to clipboard, clearing the selection.
Delete one character in front of the cursor.
Delete a word in front of the caret.
Draw selection, if applicable.
Iterate on each line in an interval.
Return each line containing the selection.
Push the given state snapshot (value, caret & selection) into the undo stack. Refuses to push if the current state can be merged with it, unless forcePushSnapshot is used.
Get the empty part of the buffer.
If true, this input is currently empty.
If true, there's an active selection.
Get line in the input by a byte index.
Update a line with given byte index.
Get the index of the start or end of the line — from index of any character on the same line.
Get the index of the start or end of the line — from index of any character on the same line.
Clear selection if selection movement is disabled.
If true, this input accepts multiple inputs in the input; pressing "enter" will start a new line.
Find the closest index to the given position.
Request a new or a larger buffer.
Open the input's context menu.
Paste text from clipboard.
Get the current style for the label.
Move caret to the previous or next character.
Move the caret to the previous or next line.
Move caret to the previous or next word.
Push a character or string to the input.
Push the given state snapshot (value, caret & selection) into the undo stack. Refuses to push if the current state can be merged with it, unless forcePushSnapshot is used.
Perform the last undone action again.
Current horizontal visual offset of the label.
Set scroll value.
Scroll ancestors so the text input becomes visible.
Begin or continue selection using given movement action.
Select all text
Select the whole line the cursor is.
Select a part of text. This is preferred to setting selectionStart & selectionEnd directly, since the two properties are synchronized together and a change might be ignored.
Select the word surrounding the cursor. If selection is active, expands selection to cover words.
Get or set currently selected text.
High index of the selection, right boundary, second index.
Low index of the selection, left boundary, first index.
Point where selection begins. Caret is the other end of the selection.
Restore state from snapshot
Produce a snapshot for the current state. Returns the snapshot.
Submit the input.
Get an appropriate text ruler for this input.
Mark the text input as modified.
Mark the text input as modified and fire the "changed" event.
Restore the last value in history.
Update the caret position to match the caret index.
Get the filled part of the buffer.
Get the used size of the buffer.
Value written in the input.
Get or set text following the caret.
Get or set text preceding the caret.
Last padding box assigned to this node, with scroll applied.
If true, the caret index has not changed since last pushSnapshot.
Current action history, expressed as two stacks, indicating undoable and redoable actions, controllable via snapshot, pushSnapshot, undo and redo.
Current action history, expressed as two stacks, indicating undoable and redoable actions, controllable via snapshot, pushSnapshot, undo and redo.
Underlying label controlling the content.
Context menu for this input.
Reference horizontal (X) position for vertical movement. Relative to the input's top-left corner.
Time of the last interaction with the input.
Maximum entries in the history.
A placeholder text for the field, displayed when the field is empty. Style using emptyStyle.
If true, current movement action is performed while selecting.
Size of the field.
Returns true if the node can react to given scroll.
React to scroll wheel input.
Scroll to given child node.
Get current scroll value.
Set scroll value.
Text input field.