Documentation
¶
Overview ¶
Package textile weaves strings into a text image.
Index ¶
- func Draw(dst *Textile, r image.Rectangle, src *Textile, sp image.Point)
- type Textile
- func (t *Textile) At(x, y int) string
- func (t *Textile) Bounds() image.Rectangle
- func (t *Textile) Fill(str string)
- func (t Textile) Lines() []string
- func (t Textile) LinesWithFill(fillZero string) []string
- func (t *Textile) Set(x, y int, str string)
- func (t *Textile) StringsOffset(x, y int) int
- func (t *Textile) SubText(r image.Rectangle) *Textile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Textile ¶
Textile represents every cell in a display as a string that ideally renders as a single glyph. Like images and slices, the textile is a thin header that can share allocated memory with other textiles.
func New ¶
New returns a Textile with the given rectangle. As with images, the rectangle need not rest at the origin.
func (Textile) LinesWithFill ¶
LinesWithFill returns a slice of row strings from the textile, filling in any empty strings with the given one.
func (*Textile) StringsOffset ¶
StringsOffset is a utility for seeking a slice of the underlying strings starting at the given position within the allocation.
Click to show internal directories.
Click to hide internal directories.