示例#1
0
文件: controls.go 项目: DaviWei/iup
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))
}
示例#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)))
}