Exemple #1
0
func (panel *Panel) Move(y, x int) bool {
	return isOk(C.move_panel((*C.PANEL)(panel), C.int(y), C.int(x)))
}
Exemple #2
0
func (p *Panel) Move(x, y int) error {
	if C.move_panel(p.panel, C.int(y), C.int(x)) == ERR {
		return Error
	}
	return nil
}
Exemple #3
0
// Move the panel to the specified location. It is important to never use
// ncurses movement functions on the window governed by panel. Always use
// this function
func (p *Panel) Move(y, x int) error {
	if C.move_panel(p.pan, C.int(y), C.int(x)) == C.ERR {
		return errors.New("Failed to move panel")
	}
	return nil
}