Versions in this module Expand all Collapse all v1 v1.2.1 Jun 11, 2024 v1.2.0 Mar 21, 2024 v1.1.1 Dec 19, 2023 v1.1.0 Jul 9, 2022 v1.0.8 Jul 5, 2022 v1.0.7 Jun 24, 2022 v1.0.6 May 30, 2022 v1.0.5 May 23, 2022 v1.0.4 Mar 10, 2022 v1.0.3 Mar 10, 2022 v1.0.2 Mar 9, 2022 v1.0.1 Mar 8, 2022 Changes in this version + const BreakAny + const BreakSpace + const MI + const MV + const MX + const MY + const NoWrap + const WrapNewLine + const WrapSameLine + func IsConvex(vertices ...image.Point) bool + func StringWidth(s string, f font.Face) int + func Width(s []byte, f font.Face) int + type Area struct + func NewArea(r image.Rectangle, displays ...*Display) *Area + func (a *Area) Arc(p image.Point, mina, minb, maxa, maxb int, th0, th1 int32, fill bool) + func (a *Area) Bounds() image.Rectangle + func (a *Area) Color() color.Color + func (a *Area) Draw(r image.Rectangle, src image.Image, sp image.Point, mask image.Image, ...) + func (a *Area) Err(clear bool) error + func (a *Area) Fill(r image.Rectangle) + func (a *Area) FillQuad(p0, p1, p2, p3 image.Point) + func (a *Area) Flush() + func (a *Area) Line(p0, p1 image.Point) + func (a *Area) Mirror() int + func (a *Area) NewTextWriter(f font.Face) *TextWriter + func (a *Area) Origin() image.Point + func (a *Area) Point(x, y int) + func (a *Area) Quad(p0, p1, p2, p3 image.Point, fill bool) + func (a *Area) Rect() image.Rectangle + func (a *Area) RoundRect(p0, p1 image.Point, ra, rb int, fill bool) + func (a *Area) SetColor(c color.Color) + func (a *Area) SetColorRGBA(r, g, b, alpha uint8) + func (a *Area) SetMirror(mvxy int) + func (a *Area) SetOrigin(origin image.Point) + func (a *Area) SetRect(r image.Rectangle) + type Display struct + func NewDisplay(drv Driver) *Display + func (d *Display) Bounds() image.Rectangle + func (d *Display) Driver() Driver + func (d *Display) Err(clear bool) error + func (d *Display) Flush() + func (d *Display) NewArea(r image.Rectangle) *Area + func (d *Display) Rect() image.Rectangle + func (d *Display) SetDir(dir int) + func (d *Display) SetOrigin(origin image.Point) + func (d *Display) SetRect(r image.Rectangle) + type Driver interface + Draw func(r image.Rectangle, src image.Image, sp image.Point, mask image.Image, ...) + Err func(clear bool) error + Fill func(r image.Rectangle) + Flush func() + SetColor func(c color.Color) + SetDir func(dir int) image.Rectangle + type TextWriter struct + Area *Area + Break byte + Color image.Image + Face font.Face + Offset image.Point + Pos image.Point + Wrap byte + func (w *TextWriter) SetColor(c color.Color) + func (w *TextWriter) SetFace(f font.Face) + func (w *TextWriter) Write(s []byte) (int, error) + func (w *TextWriter) WriteString(s string) (int, error)