Ejemplo n.º 1
0
func MatSetAttribute(ih *Ihandle, name string, lin int, col int, value unsafe.Pointer) {
	cName := C.CString(name)
	defer C.free(unsafe.Pointer(cName))

	C.IupMatSetAttribute(ih.C(), cName, C.int(lin), C.int(col), (*C.char)(value))
}
Ejemplo n.º 2
0
func (m *IupMatrix) MatSetAttributeData(name string, lin, col int, ptr uintptr) {
	cname := NewCS(name)
	defer FreeCS(cname)
	C.IupMatSetAttribute(toNative(m), cname, C.int(lin), C.int(col), (*C.char)(unsafe.Pointer(ptr)))
}