예제 #1
0
func GetInt(ih *Ihandle, name string) int64 {
	cName := C.CString(name)
	defer C.free(unsafe.Pointer(cName))

	return int64(C.IupGetInt((*C.Ihandle)(ih), cName))
}
예제 #2
0
파일: handle.go 프로젝트: visualfc/go-iup
func (h *Handle) GetInt(name string) int {
	cname := NewCS(name)
	defer FreeCS(cname)
	return int(C.IupGetInt(h.p, cname))
}