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

	return float64(C.IupGetFloat((*C.Ihandle)(ih), cName))
}
示例#2
0
文件: handle.go 项目: visualfc/go-iup
func (h *Handle) GetFloat(name string) float32 {
	cname := NewCS(name)
	defer FreeCS(cname)
	return float32(C.IupGetFloat(h.p, cname))
}