示例#1
0
文件: iupim.go 项目: visualfc/go-iup
func LoadImage(filename string) *iup.Handle {
	cname := iup.NewCS(filename)
	defer iup.FreeCS(cname)
	return iup.NewHandle(C.IupLoadImage((*C.char)(cname)))
}
示例#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))
}
示例#3
0
文件: iupole.go 项目: visualfc/go-iup
func OleControl(progid string) *iup.Handle {
	id := iup.NewCS(progid)
	defer iup.FreeCS(id)
	return iup.NewHandle(C.IupOleControl((*C.char)(id)))
}
示例#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))
}