Skip to content

h2d.TextInput

h2d.TextInput

Inherits from: h2d.Text

Fields

NameType
cursorIndexI32
cursorTileh2d.Tile
selectionTileh2d.Tile
cursorBlinkTimeF64
inputWidthNull
selectionRangeVirtual[length, start]
canEditBool
interactiveh2d.Interactive
cursorTextString
cursorXI32
cursorXIndexI32
cursorBlinkF64
scrollXI32
selectionPosI32
selectionSizeI32
undohl.types.ArrayObj
redohl.types.ArrayObj
lastChangeF64
lastClickF64
maxHistorySizeI32
onOutFun
onOverFun
onMoveFun
onClickFun
onPushFun
onReleaseFun
onKeyDownFun
onKeyUpFun
onTextInputFun
onFocusFun
onFocusLostFun
onChangeFun

Protos

  • f@5910 constraintSize(h2d.TextInput, F64, F64) → Void
  • f@5911 handleKey(h2d.TextInput, hxd.Event) → Void
  • f@5912 cutSelection(h2d.TextInput) → Bool
  • f@5913 setState(h2d.TextInput, Virtual[c, sel, t]) → Void
  • f@5914 curHistoryState(h2d.TextInput) → Virtual[c, sel, t]
  • f@5915 beforeChange(h2d.TextInput) → Void
  • f@5916 set_text(h2d.TextInput, String) → String
  • f@5917 set_font(h2d.TextInput, h2d.Font) → h2d.Font
  • f@5918 initGlyphs(h2d.TextInput, String, Ref, Ref, hl.types.ArrayBytes_Int) → Void
  • f@5919 textPos(h2d.TextInput, F64, F64) → I32
  • f@5920 sync(h2d.TextInput, h2d.RenderContext) → Void
  • f@5921 draw(h2d.TextInput, h2d.RenderContext) → Void
  • f@5922 focus(h2d.TextInput) → Void
  • f@5923 hasFocus(h2d.TextInput) → Bool
  • f@5936 drawRec(h2d.TextInput, h2d.RenderContext) → Void

Bindings

  • f@5935 onChange(h2d.TextInput) → Void
  • f@5934 onFocusLost(h2d.TextInput, hxd.Event) → Void
  • f@5933 onFocus(h2d.TextInput, hxd.Event) → Void
  • f@5932 onTextInput(h2d.TextInput, hxd.Event) → Void
  • f@5931 onKeyUp(h2d.TextInput, hxd.Event) → Void
  • f@5930 onKeyDown(h2d.TextInput, hxd.Event) → Void
  • f@5929 onRelease(h2d.TextInput, hxd.Event) → Void
  • f@5928 onPush(h2d.TextInput, hxd.Event) → Void
  • f@5927 onClick(h2d.TextInput, hxd.Event) → Void
  • f@5926 onMove(h2d.TextInput, hxd.Event) → Void
  • f@5925 onOver(h2d.TextInput, hxd.Event) → Void
  • f@5924 onOut(h2d.TextInput, hxd.Event) → Void
  • static f@5937 __constructor__(h2d.TextInput, h2d.Font, h2d.Object) → Void