func SetAttribute(ih *Ihandle, name, value string) { cName := C.CString(name) defer C.free(unsafe.Pointer(cName)) cValue := C.CString(value) defer C.free(unsafe.Pointer(cValue)) C.IupSetAttribute(ih.C(), cName, cValue) }
func SetAttribute(ih *Ihandle, name string, value unsafe.Pointer) { cName := C.CString(name) defer C.free(unsafe.Pointer(cName)) C.IupSetAttribute((*C.Ihandle)(ih), cName, (*C.char)(value)) }
func (h *Handle) SetAttributeData(name string, value uintptr) { cname := NewCS(name) defer FreeCS(cname) C.IupSetAttribute(h.p, cname, (*C.char)(unsafe.Pointer(value))) }