Exemple #1
0
func (panel *Panel) Replace(win *Window) bool {
	return isOk(C.replace_panel((*C.PANEL)(panel), (*C.WINDOW)(unsafe.Pointer((win)))))
}
Exemple #2
0
func (p *Panel) Replace(win *Window) error {
	if C.replace_panel(p.panel, win.win) == ERR {
		return Error
	}
	return nil
}
Exemple #3
0
// Replace panel's associated window with a new one.
func (p *Panel) Replace(w *Window) error {
	if C.replace_panel(p.pan, w.win) == C.ERR {
		return errors.New("Failed to replace window")
	}
	return nil
}