示例#1
0
// VLine draws a verticle line starting at y, x and ending at height using
// the specified character
func (w *Window) VLine(y, x int, ch Char, wid int) {
	C.mvwvline(w.win, C.int(y), C.int(x), C.chtype(ch), C.int(wid))
}
示例#2
0
文件: window.go 项目: zyxar/gocurse
func (win *Window) Mvvline(y, x int, ch chtype, n int) error {
	if C.mvwvline((*C.WINDOW)(win), C.int(y), C.int(x), C.chtype(ch), C.int(n)) == C.ERR {
		return CursesError{"mvwvline failed"}
	}
	return nil
}