示例#1
0
文件: handle.go 项目: visualfc/go-iup
func (h *Handle) GetAttributeDataId(name string, id int) uintptr {
	cname := NewCS(name)
	defer FreeCS(cname)
	return uintptr(unsafe.Pointer(C.IupGetAttributeId(h.p, cname, C.int(id))))
}
示例#2
0
func GetAttributeId(ih *Ihandle, name string, id int) string {
	cName := C.CString(name)
	defer C.free(unsafe.Pointer(cName))

	return C.GoString(C.IupGetAttributeId((*C.Ihandle)(ih), cName, C.int(id)))
}
示例#3
0
文件: handle.go 项目: visualfc/go-iup
func (h *Handle) GetAttributeId(name string, id int) string {
	cname := NewCS(name)
	defer FreeCS(cname)
	return FromCS(C.IupGetAttributeId(h.p, cname, C.int(id)))
}