Versions in this module Expand all Collapse all v0 v0.1.2 Jul 9, 2026 v0.1.1 Jul 6, 2026 Changes in this version type CellPainter + func (p *CellPainter) FillRoundRect(r Rect, radius int, c RGBA) + func (p *CellPainter) StrokeRoundRect(r Rect, radius int, c RGBA, lineW int) type Painter + FillRoundRect func(r Rect, radius int, c RGBA) + StrokeRoundRect func(r Rect, radius int, c RGBA, lineW int) type PixelPainter + func (p *PixelPainter) FillRoundRect(r Rect, radius int, c RGBA) + func (p *PixelPainter) StrokeRoundRect(r Rect, radius int, c RGBA, lineW int) v0.1.0 Jul 2, 2026 Changes in this version + type Button struct + Bounds Rect + Label string + Pressed bool + func (b *Button) Draw(p Painter, theme *Theme) + type Cell struct + Bg RGBA + Fg RGBA + Rune rune + type CellPainter struct + Cells []Cell + H int + W int + func NewCellPainter(w, h int) *CellPainter + func (p *CellPainter) FillRect(r Rect, c RGBA) + func (p *CellPainter) PutPixel(x, y int, c RGBA) + func (p *CellPainter) Size() (int, int) + func (p *CellPainter) StrokeRect(r Rect, c RGBA, lineW int) + func (p *CellPainter) Text(x, y int, s string, ink RGBA) + func (p *CellPainter) WriteANSI(w io.Writer) (int, error) + type Label struct + Bounds Rect + Text string + func (l *Label) Draw(p Painter, theme *Theme) + type Painter interface + FillRect func(r Rect, c RGBA) + PutPixel func(x, y int, c RGBA) + Size func() (w, h int) + StrokeRect func(r Rect, c RGBA, lineW int) + Text func(x, y int, s string, ink RGBA) + type PixelPainter struct + Buf []byte + Height int + Width int + func NewPixelPainter(buf []byte, width, height int) *PixelPainter + func (p *PixelPainter) FillRect(r Rect, c RGBA) + func (p *PixelPainter) PutPixel(x, y int, c RGBA) + func (p *PixelPainter) Size() (int, int) + func (p *PixelPainter) StrokeRect(r Rect, c RGBA, lineW int) + func (p *PixelPainter) Text(x, y int, s string, ink RGBA) + type ProgressBar struct + Bounds Rect + Value float64 + func (b *ProgressBar) Draw(p Painter, theme *Theme) + type RGBA struct + A uint8 + B uint8 + G uint8 + R uint8 + func RGB(r, g, b uint8) RGBA + type Rect struct + H int + W int + X int + Y int + func (r Rect) Contains(px, py int) bool + type Theme struct + Accent RGBA + Background RGBA + Border RGBA + OnSurface RGBA + Surface RGBA + func DarkTheme() *Theme + func LightTheme() *Theme + type Widget interface + Draw func(p Painter, theme *Theme)