Example #1
0
func (m *IupMatrix) MatGetAttributeData(name string, lin, col int) uintptr {
	cname := NewCS(name)
	defer FreeCS(cname)
	return (uintptr)(unsafe.Pointer(C.IupMatGetAttribute(toNative(m), cname, C.int(lin), C.int(col))))
}
Example #2
0
func MatGetAttribute(ih *Ihandle, name string, lin int, col int) string {
	cName := C.CString(name)
	defer C.free(unsafe.Pointer(cName))

	return C.GoString(C.IupMatGetAttribute(ih.C(), cName, C.int(lin), C.int(col)))
}
Example #3
0
func (m *IupMatrix) MatGetAttribute(name string, lin, col int) string {
	cname := NewCS(name)
	defer FreeCS(cname)
	return C.GoString(C.IupMatGetAttribute(toNative(m), cname, C.int(lin), C.int(col)))
}