Beispiel #1
0
func LoadImage(filename string) *iup.Handle {
	cname := iup.NewCS(filename)
	defer iup.FreeCS(cname)
	return iup.NewHandle(C.IupLoadImage((*C.char)(cname)))
}
Beispiel #2
0
func (h *IupPPlot) InsertStr(index, sample_index int, x string, y float32) {
	cx := iup.NewCS(x)
	iup.FreeCS(cx)
	C.IupPPlotInsertStr(toNative(h), C.int(index), C.int(sample_index), (*C.char)(cx), C.float(y))
}
Beispiel #3
0
func OleControl(progid string) *iup.Handle {
	id := iup.NewCS(progid)
	defer iup.FreeCS(id)
	return iup.NewHandle(C.IupOleControl((*C.char)(id)))
}
Beispiel #4
0
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))
}