MCPcopy
hub / github.com/gizak/termui / SetString

Method SetString

v3/buffer.go:69–76  ·  view source on GitHub ↗
(s string, style Style, p image.Point)

Source from the content-addressed store, hash-verified

67}
68
69func (self *Buffer) SetString(s string, style Style, p image.Point) {
70 runes := []rune(s)
71 x := 0
72 for _, char := range runes {
73 self.SetCell(Cell{char, style}, image.Pt(p.X+x, p.Y))
74 x += rw.RuneWidth(char)
75 }
76}

Callers 7

DrawMethod · 0.80
DrawMethod · 0.80
DrawMethod · 0.80
DrawMethod · 0.80
DrawMethod · 0.80
plotAxesMethod · 0.80
DrawMethod · 0.80

Calls 1

SetCellMethod · 0.95

Tested by

no test coverage detected