Example #1
0
File: pplot.go Project: DaviWei/iup
func Transform(ih *iup.Ihandle, x, y float64) (int, int) {
	cIX := new(C.int)
	cIY := new(C.int)

	C.IupPPlotTransform(ih.C(), C.float(x), C.float(y), cIX, cIY)

	return int(*cIX), int(*cIY)
}
Example #2
0
func (h *IupPPlot) Transform(x, y float32, ix, iy *int) {
	C.IupPPlotTransform(toNative(h), C.float(x), C.float(y), (*C.int)(unsafe.Pointer(ix)), (*C.int)(unsafe.Pointer(iy)))
}