コード例 #1
0
ファイル: pad.go プロジェクト: trotha01/goncurses
// NoutRefresh indicates that a section of the screen should be redrawn but
// does not update the phsyical screen until Update() is called. See
// Pad.Refresh() for details on the arguments and Window.NoutRefresh for
// more details on the workings of this function
func (p *Pad) NoutRefresh(py, px, sy, sx, h, w int) error {
	ok := C.pnoutrefresh(p.win, C.int(py), C.int(px), C.int(sy),
		C.int(sx), C.int(h), C.int(w))
	if ok != C.OK {
		return errors.New("Failed to refresh pad")
	}
	return nil
}
コード例 #2
0
ファイル: curses.go プロジェクト: tncardoso/gocurses
// Same as NoutRefresh, but for pads.
func (window *Window) PnoutRefresh(pminrow, pmincol, sminrow, smincol, smaxrow, smaxcol int) {
	C.pnoutrefresh(window.cwin, C.int(pminrow), C.int(pmincol), C.int(sminrow), C.int(smincol), C.int(smaxrow), C.int(smaxcol))
}