Exemplo n.º 1
0
Arquivo: pplot.go Projeto: 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)
}
Exemplo n.º 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)))
}