示例#1
0
func SetAttributeHandle(ih *Ihandle, name string, ihNamed *Ihandle) {
	cName := C.CString(name)
	defer C.free(unsafe.Pointer(cName))

	C.IupSetAttributeHandle((*C.Ihandle)(ih), cName, (*C.Ihandle)(ihNamed))
}
示例#2
0
文件: handle.go 项目: visualfc/go-iup
func (h *Handle) SetAttributeHandle(name string, h_named IHandle) {
	cname := NewCS(name)
	defer FreeCS(cname)
	C.IupSetAttributeHandle(h.p, cname, toNative(h_named))
}