LEVIATHAN v962456e · 962456eee1

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) -> int

addValidator

addValidator(() => bool check, string message) -> void

commitEdit

commitEdit(string newValue) -> void

contentDesired

contentDesired(Size avail) -> Size

copySelection

copySelection() -> void

cursor

cursor() -> int

cursorPos

cursorPos() -> Point | None

deleteSelection

deleteSelection() -> void

enabled

enabled() -> bool

fireSubmit

fireSubmit() -> void

handleKey

handleKey(KeyEvent e) -> void

handleMouseCapture

handleMouseCapture(MouseEvent e) -> void

handlePaste

handlePaste(PasteEvent e) -> void

handleText

handleText(TextEvent e) -> void

hasSelection

hasSelection() -> bool

moveCursorTo

moveCursorTo(int newCursor, bool extend) -> void

offChange

offChange(int t) -> void

offSubmit

offSubmit(int t) -> void

onChange

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

onSubmit

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

paintContent

paintContent(Canvas c) -> void

placeholder

placeholder() -> string

recomputeScroll

recomputeScroll(int innerW) -> void

recomputeScrollIfLaidOut

recomputeScrollIfLaidOut() -> void

setEnabled

setEnabled(bool v) -> Input

setMask

setMask(char m) -> Input

setMaxLength

setMaxLength(int n) -> Input

setPlaceholder

setPlaceholder(string v) -> Input

setValidator

setValidator((string) => bool check) -> Input

setValidatorMessage

setValidatorMessage(string msg) -> Input

setValue

setValue(string v) -> Input

validate

validate() -> bool

validationMessage

validationMessage() -> string

value

value() -> string

wordJumpLeft

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

wordJumpRight

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