예제 #1
0
파일: pplot.go 프로젝트: DaviWei/iup
func AddString(ih *iup.Ihandle, x string, y float64) {
	cX := C.CString(x)
	defer C.free(unsafe.Pointer(cX))

	C.IupPPlotAddStr(ih.C(), cX, C.float(y))
}
예제 #2
0
파일: iuppplot.go 프로젝트: visualfc/go-iup
func (h *IupPPlot) AddStr(x string, y float32) {
	cx := iup.NewCS(x)
	iup.FreeCS(cx)
	C.IupPPlotAddStr(toNative(h), (*C.char)(cx), C.float(y))
}