Esempio n. 1
0
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))))
}
Esempio n. 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)))
}
Esempio n. 3
0
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)))
}