Versions in this module Expand all Collapse all v0 v0.2.0-alpha Sep 27, 2026 v0.1.0 Sep 27, 2026 Changes in this version + func IsKeyRepeating(key ebiten.Key) bool + func IsMouseButtonRepeating(button ebiten.MouseButton) bool + type CaretScrollTarget struct + Bottom float64 + LogicalLineIndex int + Top float64 + X float64 + type SelectionSide int + const SelectionSideEnd + const SelectionSideNone + const SelectionSideStart + type Text struct + func (t *Text) AppendBoundsOfTextRange(dst []image.Rectangle, context *guigui.Context, bounds image.Rectangle, ...) []image.Rectangle + func (t *Text) AppendHotspotRanges(dst []TextRange) []TextRange + func (t *Text) Build(context *guigui.Context, adder *guigui.ChildAdder) error + func (t *Text) CanCopy() bool + func (t *Text) CanCut() bool + func (t *Text) CanPaste() bool + func (t *Text) CanRedo() bool + func (t *Text) CanUndo() bool + func (t *Text) CaretPositionAtTextIndexInBytes(context *guigui.Context, textIndexInBytes int) (top, bottom image.Point, ok bool) + func (t *Text) CommitWithCurrentInputValue() + func (t *Text) Copy() bool + func (t *Text) CopyOverrideStyleRunsFrom(runs *textstyle.Runs, record bool) + func (t *Text) CursorShape(context *guigui.Context, widgetBounds *guigui.WidgetBounds) (ebiten.CursorShapeType, bool) + func (t *Text) Cut() bool + func (t *Text) Draw(context *guigui.Context, widgetBounds *guigui.WidgetBounds, dst *ebiten.Image) + func (t *Text) DrawPlainString(context *guigui.Context, widgetBounds *guigui.WidgetBounds, dst *ebiten.Image, ...) + func (t *Text) EffectiveStyleAt(textIndexInBytes int) textstyle.Style + func (t *Text) ForceSetValue(text string) + func (t *Text) Generation() int64 + func (t *Text) HandleButtonInput(context *guigui.Context, widgetBounds *guigui.WidgetBounds) guigui.HandleInputResult + func (t *Text) HandlePointingInput(context *guigui.Context, widgetBounds *guigui.WidgetBounds) guigui.HandleInputResult + func (t *Text) HasValue() bool + func (t *Text) HorizontalAlign() textutil.HorizontalAlign + func (t *Text) IsEditable() bool + func (t *Text) IsMultiline() bool + func (t *Text) IsVisuallyEmpty() bool + func (t *Text) Layout(context *guigui.Context, widgetBounds *guigui.WidgetBounds, ...) + func (t *Text) LayoutWidth(bounds image.Rectangle) int + func (t *Text) LineCount() int + func (t *Text) LineHeight() float64 + func (t *Text) LineIndexFromTextIndexInBytes(textIndexInBytes int) int + func (t *Text) LineStartInBytes(lineIndex int) int + func (t *Text) LogicalLineHeight(context *guigui.Context, lineIndex, wrapWidth int) float64 + func (t *Text) MaxCaretXOfLogicalLine(context *guigui.Context, lineIndex, wrapWidth int) float64 + func (t *Text) Measure(context *guigui.Context, constraints guigui.Constraints) image.Point + func (t *Text) MeasureBold(context *guigui.Context, constraints guigui.Constraints) image.Point + func (t *Text) OnHandleButtonInput(...) + func (t *Text) OnHotspotDown(f func(context *guigui.Context, textRange TextRange)) + func (t *Text) OnHotspotUp(f func(context *guigui.Context, textRange TextRange)) + func (t *Text) OnInsertionStyleReset(f func(context *guigui.Context)) + func (t *Text) OnScrollDelta(f func(context *guigui.Context, deltaX, deltaY float64)) + func (t *Text) OnScrollIntoView(f func(context *guigui.Context, start, end CaretScrollTarget)) + func (t *Text) OnValueChanged(f func(context *guigui.Context, text string, committed bool)) + func (t *Text) OnValueChangedWithoutText(f func(context *guigui.Context, committed bool)) + func (t *Text) Paste() bool + func (t *Text) PasteWithoutStyles() bool + func (t *Text) ReadBaseStyle(dst *textstyle.Style) + func (t *Text) ReadEffectiveStyleRuns(dst *textstyle.Runs) + func (t *Text) ReadEffectiveStyleRunsInRange(dst *textstyle.Runs, startInBytes, endInBytes int) + func (t *Text) ReadOverrideStyleRuns(dst *textstyle.Runs) + func (t *Text) ReadOverrideStyleRunsInRange(dst *textstyle.Runs, startInBytes, endInBytes int) + func (t *Text) ReadValueFrom(r io.Reader) (int64, error) + func (t *Text) Redo() bool + func (t *Text) ReplaceOverrideStyleRunsInRange(runs *textstyle.Runs, startInBytes, endInBytes int, record bool) + func (t *Text) ReplaceValueAtSelection(text string) + func (t *Text) Scale() float64 + func (t *Text) SelectAll() + func (t *Text) Selection() (start, end int) + func (t *Text) SetBaseStyle(style textstyle.Style) + func (t *Text) SetCaretBlinking(caretBlinking bool) + func (t *Text) SetCaretColor(clr color.Color) + func (t *Text) SetCompositionColors(inactive, active color.Color) + func (t *Text) SetEditable(editable bool) + func (t *Text) SetEllipsisString(str string) + func (t *Text) SetFirstLogicalLineInViewport(idx int) + func (t *Text) SetFontFamily(fontFamily *font.Family) + func (t *Text) SetFontSize(size float64) + func (t *Text) SetHorizontalAlign(align textutil.HorizontalAlign) + func (t *Text) SetHotspotRanges(ranges []TextRange) + func (t *Text) SetInsertionStyle(style textstyle.Style) + func (t *Text) SetKeepTailingSpace(keep bool) + func (t *Text) SetLang(lang language.Tag) + func (t *Text) SetLineHeight(lineHeight float64) + func (t *Text) SetLineHeightMode(lineHeightMode textutil.LineHeightMode) + func (t *Text) SetMaskRune(maskRune rune) + func (t *Text) SetMultiline(multiline bool) + func (t *Text) SetPaddingForScrollOffset(padding guigui.Padding) + func (t *Text) SetRichTextEditable(richTextEditable bool) + func (t *Text) SetScale(scale float64) + func (t *Text) SetSelectable(selectable bool) + func (t *Text) SetSelection(start, end int) + func (t *Text) SetSelectionColor(clr color.Color) + func (t *Text) SetSelectionVisibleWhenUnfocused(visible bool) + func (t *Text) SetSelectionWithSide(start, end int, shiftSide SelectionSide, adjustScroll bool) + func (t *Text) SetTabWidth(tabWidth float64) + func (t *Text) SetTextColor(clr color.Color) + func (t *Text) SetValue(text string) + func (t *Text) SetVerticalAlign(align textutil.VerticalAlign) + func (t *Text) SetWrapMode(wrapMode textutil.WrapMode) + func (t *Text) SetWrapWidth(width int) + func (t *Text) ShiftSelectionSide() SelectionSide + func (t *Text) Tick(context *guigui.Context, widgetBounds *guigui.WidgetBounds) error + func (t *Text) Undo() bool + func (t *Text) Value() string + func (t *Text) VerticalAlign() textutil.VerticalAlign + func (t *Text) VisualLineCountOfLogicalLine(context *guigui.Context, lineIndex, wrapWidth int) int + func (t *Text) WrapMode() textutil.WrapMode + func (t *Text) WriteStateKey(context *guigui.Context, w *guigui.StateKeyWriter) + func (t *Text) WriteValueRangeTo(w io.Writer, startInBytes, endInBytes int) (int64, error) + func (t *Text) WriteValueTo(w io.Writer) (int64, error) + type TextRange = piecetable.TextRange