Versions in this module Expand all Collapse all v0 v0.0.1 Feb 19, 2025 Changes in this version + type ChangeEvent struct + type Editor struct + Alignment text.Alignment + Font font.Font + InputHint key.InputHint + LineHeight unit.Sp + LineHeightScale float32 + LineMaterial op.CallOp + LineNumberGutter unit.Dp + LineNumberMaterial op.CallOp + ReadOnly bool + SelectMaterial op.CallOp + SoftTab bool + TabWidth int + TextHighlightMaterial op.CallOp + TextMaterial op.CallOp + TextSize unit.Sp + WrapLine bool + func (e *Editor) CaretCoords() f32.Point + func (e *Editor) CaretPos() (line, col int) + func (e *Editor) ClearSelection() + func (e *Editor) Delete(graphemeClusters int) (deletedRunes int) + func (e *Editor) Insert(s string) (insertedRunes int) + func (e *Editor) Layout(gtx layout.Context, lt *text.Shaper) layout.Dimensions + func (e *Editor) Len() int + func (e *Editor) MoveCaret(startDelta, endDelta int) + func (e *Editor) ReplaceAll(texts []TextRange, newStr string) int + func (e *Editor) ScrollByRatio(gtx layout.Context, ratio float32) + func (e *Editor) SelectedText() string + func (e *Editor) Selection() (start, end int) + func (e *Editor) SelectionLen() int + func (e *Editor) SetCaret(start, end int) + func (e *Editor) SetHighlights(highlights []TextRange) + func (e *Editor) SetText(s string) + func (e *Editor) Text() string + func (e *Editor) Update(gtx layout.Context) (EditorEvent, bool) + func (e *Editor) UpdateTextStyles(styles []*TextStyle) + func (e *Editor) ViewPortRatio() (float32, float32) + type EditorEvent interface + type Region struct + Baseline int + Bounds image.Rectangle + type SelectEvent struct + type TextRange struct + End int + Start int + type TextStyle struct + Background op.CallOp + Color op.CallOp