Exemple #1
0
func (menu *Menu) SetWin(win *Window) bool {
	return isOk(C.set_menu_win((*C.MENU)(menu), (*C.WINDOW)(unsafe.Pointer(win))))
}
Exemple #2
0
// SetWindow container for the menu
func (m *Menu) SetWindow(w *Window) error {
	err := C.set_menu_win(m.menu, w.win)
	return ncursesError(syscall.Errno(err))
}