dagon
class Input
since 0.1.0-alpha.1linux
- bases
Focusable,Styleable,IValidatable,ISingleLine
Constructors
new
new()Fields
changeHandlers_
Array<(string) => void> changeHandlers_changeTokens_
Array<int> changeTokens_cursor_
int cursor_dragging_
bool dragging_enabled_
bool enabled_extraValidatorMessages_
Array<string> extraValidatorMessages_extraValidators_
Array<() => bool> extraValidators_hasValidator_
bool hasValidator_lastValidationMessage_
string lastValidationMessage_mask_
char | None mask_maxLength_
int maxLength_placeholder_
string placeholder_scrollPx_
int scrollPx_selectionAnchor_
int selectionAnchor_submitHandlers_
Array<(string) => void> submitHandlers_submitTokens_
Array<int> submitTokens_validator_
(string) => bool validator_validatorMessage_
string validatorMessage_value_
string value_Methods
__dagonDisplayValue
__dagonDisplayValue() -> string__dagonIndexAtX
__dagonIndexAtX(Rect content, int x) -> int__dagonPrefixWidth
__dagonPrefixWidth(int scalarIdx) -> intaddValidator
addValidator(() => bool check, string message) -> voidcommitEdit
commitEdit(string newValue) -> voidcontentDesired
copySelection
copySelection() -> voidcursor
cursor() -> intcursorPos
cursorPos() -> Point | NonedeleteSelection
deleteSelection() -> voidenabled
enabled() -> boolfireSubmit
fireSubmit() -> voidhandleKey
handleKey(KeyEvent e) -> voidhandleMouseCapture
handleMouseCapture(MouseEvent e) -> voidhandlePaste
handlePaste(PasteEvent e) -> voidhandleText
handleText(TextEvent e) -> voidhasSelection
hasSelection() -> boolmoveCursorTo
moveCursorTo(int newCursor, bool extend) -> voidoffChange
offChange(int t) -> voidoffSubmit
offSubmit(int t) -> voidonChange
onChange((string) => void h) -> intonSubmit
onSubmit((string) => void h) -> intpaintContent
paintContent(Canvas c) -> voidplaceholder
placeholder() -> stringrecomputeScroll
recomputeScroll(int innerW) -> voidrecomputeScrollIfLaidOut
recomputeScrollIfLaidOut() -> voidsetEnabled
setEnabled(bool v) -> InputsetMask
setMask(char m) -> InputsetMaxLength
setMaxLength(int n) -> InputsetPlaceholder
setPlaceholder(string v) -> InputsetValidator
setValidator((string) => bool check) -> InputsetValidatorMessage
setValidatorMessage(string msg) -> InputsetValue
setValue(string v) -> Inputvalidate
validate() -> boolvalidationMessage
validationMessage() -> stringvalue
value() -> stringwordJumpLeft
wordJumpLeft(Array<char> chars, int from) -> intwordJumpRight
wordJumpRight(Array<char> chars, int from) -> int