func SetAttributeId(ih *Ihandle, name string, id int, value string) { cName := C.CString(name) defer C.free(unsafe.Pointer(cName)) cValue := C.CString(value) defer C.free(unsafe.Pointer(cValue)) C.IupSetAttributeId((*C.Ihandle)(ih), cName, C.int(id), cValue) }
func (h *Handle) SetAttributeDataId(name string, id int, value uintptr) { cname := NewCS(name) defer FreeCS(cname) C.IupSetAttributeId(h.p, cname, C.int(id), (*C.char)(unsafe.Pointer(value))) }