h2d.TextInput
h2d.TextInput
Inherits from: h2d.Text
Fields
| Name | Type | |
|---|---|---|
cursorIndex | I32 | |
cursorTile | h2d.Tile | |
selectionTile | h2d.Tile | |
cursorBlinkTime | F64 | |
inputWidth | Null | |
selectionRange | Virtual[length, start] | |
canEdit | Bool | |
interactive | h2d.Interactive | |
cursorText | String | |
cursorX | I32 | |
cursorXIndex | I32 | |
cursorBlink | F64 | |
scrollX | I32 | |
selectionPos | I32 | |
selectionSize | I32 | |
undo | hl.types.ArrayObj | |
redo | hl.types.ArrayObj | |
lastChange | F64 | |
lastClick | F64 | |
maxHistorySize | I32 | |
onOut | Fun | |
onOver | Fun | |
onMove | Fun | |
onClick | Fun | |
onPush | Fun | |
onRelease | Fun | |
onKeyDown | Fun | |
onKeyUp | Fun | |
onTextInput | Fun | |
onFocus | Fun | |
onFocusLost | Fun | |
onChange | Fun |
Protos
f@5910constraintSize(h2d.TextInput, F64, F64) → Voidf@5911handleKey(h2d.TextInput, hxd.Event) → Voidf@5912cutSelection(h2d.TextInput) → Boolf@5913setState(h2d.TextInput, Virtual[c, sel, t]) → Voidf@5914curHistoryState(h2d.TextInput) → Virtual[c, sel, t]f@5915beforeChange(h2d.TextInput) → Voidf@5916set_text(h2d.TextInput, String) → Stringf@5917set_font(h2d.TextInput, h2d.Font) → h2d.Fontf@5918initGlyphs(h2d.TextInput, String, Ref, Ref, hl.types.ArrayBytes_Int) → Voidf@5919textPos(h2d.TextInput, F64, F64) → I32f@5920sync(h2d.TextInput, h2d.RenderContext) → Voidf@5921draw(h2d.TextInput, h2d.RenderContext) → Voidf@5922focus(h2d.TextInput) → Voidf@5923hasFocus(h2d.TextInput) → Boolf@5936drawRec(h2d.TextInput, h2d.RenderContext) → Void
Bindings
f@5935onChange(h2d.TextInput) → Voidf@5934onFocusLost(h2d.TextInput, hxd.Event) → Voidf@5933onFocus(h2d.TextInput, hxd.Event) → Voidf@5932onTextInput(h2d.TextInput, hxd.Event) → Voidf@5931onKeyUp(h2d.TextInput, hxd.Event) → Voidf@5930onKeyDown(h2d.TextInput, hxd.Event) → Voidf@5929onRelease(h2d.TextInput, hxd.Event) → Voidf@5928onPush(h2d.TextInput, hxd.Event) → Voidf@5927onClick(h2d.TextInput, hxd.Event) → Voidf@5926onMove(h2d.TextInput, hxd.Event) → Voidf@5925onOver(h2d.TextInput, hxd.Event) → Voidf@5924onOut(h2d.TextInput, hxd.Event) → Void- static
f@5937__constructor__(h2d.TextInput, h2d.Font, h2d.Object) → Void