예제 #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)))
}