Exemple #1
0
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)
}
Exemple #2
0
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))
}
Exemple #3
0
func (h *Handle) SetAttributeData(name string, value uintptr) {
	cname := NewCS(name)
	defer FreeCS(cname)
	C.IupSetAttribute(h.p, cname, (*C.char)(unsafe.Pointer(value)))
}