Versions in this module Expand all Collapse all v0 v0.1.2 Jan 25, 2021 v0.1.1 Jan 25, 2021 Changes in this version + const SeekCur + const SeekEnd + const SeekSet + type Box struct + func (b *Box) Next(f *Frame) *Box + func (b *Box) Text(f *Frame) []byte + func (b *Box) TrimmedText(f *Frame) []byte + type Caret struct + func (c *Caret) Close() error + func (c *Caret) Delete(dir Direction, nBytes int) (dBytes int) + func (c *Caret) DeleteRunes(dir Direction, nRunes int) (dRunes, dBytes int) + func (c *Caret) Read(buf []byte) (n int, err error) + func (c *Caret) ReadByte() (x byte, err error) + func (c *Caret) ReadRune() (r rune, size int, err error) + func (c *Caret) Seek(offset int64, whence int) (int64, error) + func (c *Caret) Write(s []byte) (n int, err error) + func (c *Caret) WriteByte(x byte) error + func (c *Caret) WriteRune(r rune) (size int, err error) + func (c *Caret) WriteString(s string) (n int, err error) + type Direction bool + const Backwards + const Forwards + type Frame struct + func (f *Frame) FirstParagraph() *Paragraph + func (f *Frame) Height() int + func (f *Frame) Len() int + func (f *Frame) LineCount() int + func (f *Frame) NewCaret() *Caret + func (f *Frame) ParagraphCount() int + func (f *Frame) SetFace(face font.Face) + func (f *Frame) SetMaxWidth(m fixed.Int26_6) + type Line struct + func (l *Line) FirstBox(f *Frame) *Box + func (l *Line) Height(f *Frame) int + func (l *Line) Next(f *Frame) *Line + type Paragraph struct + func (p *Paragraph) FirstLine(f *Frame) *Line + func (p *Paragraph) Height(f *Frame) int + func (p *Paragraph) LineCount(f *Frame) int + func (p *Paragraph) Next(f *Frame) *Paragraph