示例#1
0
文件: controls.go 项目: DaviWei/iup
func MatGetInt(ih *Ihandle, name string, lin int, col int) int64 {
	cName := C.CString(name)
	defer C.free(unsafe.Pointer(cName))

	return int64(C.IupMatGetInt(ih.C(), cName, C.int(lin), C.int(col)))
}
示例#2
0
func (m *IupMatrix) MatGetInt(name string, lin, col int) int {
	cname := NewCS(name)
	defer FreeCS(cname)
	return int(C.IupMatGetInt(toNative(m), cname, C.int(lin), C.int(col)))
}