Versions in this module Expand all Collapse all v0 v0.4.4 Dec 12, 2025 v0.4.3 Dec 2, 2025 v0.4.2 Nov 12, 2025 v0.4.1 Nov 11, 2025 v0.4.0 Oct 11, 2025 v0.3.0 Jun 16, 2025 Changes in this version type Line + func (li *Line) All() iter.Seq[text.Glyph] v0.2.2 May 10, 2025 v0.2.1 Apr 10, 2025 v0.2.0 Apr 7, 2025 v0.1.1 Mar 19, 2025 v0.1.0 Mar 14, 2025 Changes in this version + type CombinedPos struct + Ascent fixed.Int26_6 + Descent fixed.Int26_6 + LineCol ScreenPos + RunIndex int + Runes int + TowardOrigin bool + X fixed.Int26_6 + Y int + func (c CombinedPos) String() string + type Line struct + Ascent fixed.Int26_6 + Descent fixed.Int26_6 + Glyphs []*text.Glyph + RuneOff int + Runes int + Width fixed.Int26_6 + XOff fixed.Int26_6 + YOff int + func (li *Line) GetGlyphs(offset, count int) []text.Glyph + func (li Line) String() string + type Paragraph struct + EndX fixed.Int26_6 + EndY int + RuneOff int + Runes int + StartX fixed.Int26_6 + StartY int + func (p *Paragraph) Add(li *Line) bool + type Region struct + Baseline int + Bounds image.Rectangle + type ScreenPos struct + Col int + Line int + type TextLayout struct + Graphemes []int + Lines []*Line + Paragraphs []Paragraph + Positions []CombinedPos + func NewTextLayout(src buffer.TextSource) TextLayout + func (tl *TextLayout) ClosestToLineCol(lineCol ScreenPos) CombinedPos + func (tl *TextLayout) ClosestToRune(runeIdx int) (CombinedPos, int) + func (tl *TextLayout) ClosestToXY(x fixed.Int26_6, y int) CombinedPos + func (tl *TextLayout) Layout(shaper *text.Shaper, params *text.Parameters, tabWidth int, wrapLine bool) layout.Dimensions + func (tl *TextLayout) Locate(viewport image.Rectangle, startRune, endRune int, rects []Region) []Region