Create a password input.
Draw selection, if applicable.
PasswordInput does not support multiline.
Request a new or larger buffer.
Delete all textual data created by the password box. All text typed inside the box will be overwritten, except for any copies, if they were made. Clears the box.
Distance between the start positions of each character.
Character circle radius.
Size of the field.
A placeholder text for the field, displayed when the field is empty. Style using emptyStyle.
Time of the last interaction with the input.
Reference horizontal (X) position for vertical movement. Relative to the input's top-left corner.
Context menu for this input.
Underlying label controlling the content.
Maximum entries in the history.
If true, current movement action is performed while selecting.
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.
Mark the text input as modified.
Mark the text input as modified and fire the "changed" event.
Scroll ancestors so the text input becomes visible.
Value written in the input.
If true, this input is currently empty.
If true, this input accepts multiple inputs in the input; pressing "enter" will start a new line.
Current horizontal visual offset of the label.
Set scroll value.
Get the current style for the label.
Get or set text preceding the caret.
Get or set currently selected text.
Get or set text following the caret.
Visual position of the caret, relative to the top-left corner of the input.
Index of the character, byte-wise.
If true, there's an active selection.
Low index of the selection, left boundary, first index.
High index of the selection, right boundary, second index.
Point where selection begins. Caret is the other end of the selection.
Point where selection ends. Corresponds to caret position.
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.
Clear selection if selection movement is disabled.
Update the caret position to match the caret index.
Find the closest index to the given position.
Get the current buffer.
Get the used size of the buffer.
Get the filled part of the buffer.
Get the empty part of the buffer.
Request a new or a larger buffer.
Get an appropriate text ruler for this input.
Draw selection, if applicable.
Push a character or string to the input.
Start a new line
Submit the input.
Erase last word before the caret, or the first word after.
Remove a word before the caret.
Delete a word in front of the caret.
Erase any character preceding the caret, or the next one.
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 current line
Change the current line. Moves the cursor to the end of the newly created line.
Get the column the given index (or the cursor, if omitted) is on.
Iterate on each line in an interval.
Return each line containing the selection.
Open the input's context menu.
Remove a character before the caret. Same as chop.
Delete one character in front of the cursor.
Clear the value of this input field, making it empty.
Select the word surrounding the cursor. If selection is active, expands selection to cover words.
Select the whole line the cursor is.
Move caret to the previous or next character.
Move caret to the previous or next word.
Move the caret to the previous or next line.
Move the caret to the given screen position (viewport space).
Move the caret to mouse position.
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 the end of the line.
Move the caret to the beginning of the input
Move the caret to the end of the input
Select all text
Begin or continue selection using given movement action.
Cut selected text to clipboard, clearing the selection.
Copy selected text to clipboard.
Paste text from clipboard.
Clear the undo/redo action history.
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.
Produce a snapshot for the current state. Returns the snapshot.
Restore state from snapshot
Restore the last value in history.
Perform the last undone action again.
// PasswordInput lets you ask the user for passwords auto node = passwordInput(); // Retrieve the password with `value` auto userPassword = node.value; // Destroy the passwords once you're done to secure them against attacks // (Careful: This will invalidate `userPassword` we got earlier) node.shred();
A password input box.