1
0
mirror of https://github.com/gizak/termui.git synced 2025-05-08 19:29:47 +08:00
termui/point.go

24 lines
300 B
Go
Raw Normal View History

2015-02-03 09:07:31 -05:00
package termui
type Point struct {
2015-03-03 13:28:09 -05:00
Ch rune
Bg Attribute
Fg Attribute
X int
Y int
}
func newPoint(c rune, x, y int) (p Point) {
p.Ch = c
p.X = x
p.Y = y
return
}
func newPointWithAttrs(c rune, x, y int, fg, bg Attribute) Point {
p := newPoint(c, x, y)
p.Bg = bg
p.Fg = fg
return p
2015-02-03 09:07:31 -05:00
}