Documentation ¶
Index ¶
- Variables
- func StrLen(s string) (n int)
- type TextBuf
- func (tb *TextBuf) Block(x, y, w, h int, fill rune)
- func (tb *TextBuf) Line(x0, y0, x1, y1 int, symbol rune)
- func (tb *TextBuf) Paste(x, y int, buf *TextBuf)
- func (tb *TextBuf) Put(x, y int, c rune)
- func (tb *TextBuf) Rect(x, y, w, h int, style int, fill rune)
- func (tb *TextBuf) String() string
- func (tb *TextBuf) Text(x, y int, txt string, align int)
- type TextGraphics
- func (tg *TextGraphics) Background() (r, g, b, a uint8)
- func (g *TextGraphics) Bars(bars []chart.Barinfo, style chart.Style)
- func (g *TextGraphics) Begin()
- func (g *TextGraphics) Boxes(boxes []chart.Box, width int, style chart.Style)
- func (g *TextGraphics) Dimensions() (int, int)
- func (g *TextGraphics) End()
- func (g *TextGraphics) FontMetrics(font chart.Font) (fw float32, fh int, mono bool)
- func (g *TextGraphics) Key(x, y int, key chart.Key, options chart.PlotOptions)
- func (g *TextGraphics) Line(x0, y0, x1, y1 int, style chart.Style)
- func (g *TextGraphics) Options() chart.PlotOptions
- func (g *TextGraphics) Path(x, y []int, style chart.Style)
- func (g *TextGraphics) Rect(x, y, w, h int, style chart.Style)
- func (g *TextGraphics) Rings(wedges []chart.Wedgeinfo, x, y, ro, ri int)
- func (g *TextGraphics) Scatter(points []chart.EPoint, plotstyle chart.PlotStyle, style chart.Style)
- func (g *TextGraphics) String() string
- func (g *TextGraphics) Symbol(x, y int, style chart.Style)
- func (g *TextGraphics) Text(x, y int, t string, align string, rot int, font chart.Font)
- func (g *TextGraphics) TextLen(t string, font chart.Font) int
- func (g *TextGraphics) Wedge(x, y, ro, ri int, phi, psi float64, style chart.Style)
- func (g *TextGraphics) XAxis(xrange chart.Range, y, y1 int, options chart.PlotOptions)
- func (g *TextGraphics) YAxis(yrange chart.Range, x, x1 int, options chart.PlotOptions)
Constants ¶
This section is empty.
Variables ¶
View Source
var CircleStretchFactor float64 = 1.85
View Source
var Edge = [][4]rune{{'+', '+', '+', '+'}, {'.', '.', '\'', '\''}, {'/', '\\', '\\', '/'}}
Different edge styles for boxes
Functions ¶
Types ¶
type TextBuf ¶
type TextBuf struct { Buf []rune // the internal buffer. Point (x,y) is mapped to x + y*(W+1) W, H int // Width and Height }
A Text Buffer
func NewTextBuf ¶
Set up a new TextBuf with width w and height h.
type TextGraphics ¶
type TextGraphics struct {
// contains filtered or unexported fields
}
TextGraphics
func (*TextGraphics) Background ¶
func (tg *TextGraphics) Background() (r, g, b, a uint8)
func (*TextGraphics) Begin ¶
func (g *TextGraphics) Begin()
func (*TextGraphics) Dimensions ¶
func (g *TextGraphics) Dimensions() (int, int)
func (*TextGraphics) End ¶
func (g *TextGraphics) End()
func (*TextGraphics) FontMetrics ¶
func (*TextGraphics) Key ¶
func (g *TextGraphics) Key(x, y int, key chart.Key, options chart.PlotOptions)
func (*TextGraphics) Options ¶
func (g *TextGraphics) Options() chart.PlotOptions
func (*TextGraphics) Rings ¶
func (g *TextGraphics) Rings(wedges []chart.Wedgeinfo, x, y, ro, ri int)
func (*TextGraphics) String ¶
func (g *TextGraphics) String() string
func (*TextGraphics) Wedge ¶
func (g *TextGraphics) Wedge(x, y, ro, ri int, phi, psi float64, style chart.Style)
func (*TextGraphics) XAxis ¶
func (g *TextGraphics) XAxis(xrange chart.Range, y, y1 int, options chart.PlotOptions)
func (*TextGraphics) YAxis ¶
func (g *TextGraphics) YAxis(yrange chart.Range, x, x1 int, options chart.PlotOptions)
Click to show internal directories.
Click to hide internal directories.