示例#1
0
文件: pplot.go 项目: jcowgar/go-iup
func PPlot(opts ...interface{}) *Ihandle {
	OpenControlLib()

	if pplotLibOpened == false {
		C.IupPPlotOpen()
		pplotLibOpened = true
	}

	ih := (*Ihandle)(C.IupPPlot())

	for _, o := range opts {
		switch v := o.(type) {
		default:
			Decorate(ih, o)
		}
	}

	return ih
}
示例#2
0
文件: pplot.go 项目: DaviWei/iup
func Open(opts ...interface{}) *iup.Ihandle {
	iup.OpenControlLib()

	if libOpened == false {
		C.IupPPlotOpen()
		libOpened = true
	}

	ih := (*iup.Ihandle)(C.IupPPlot())

	for _, o := range opts {
		switch o.(type) {
		default:
			iup.Decorate(ih, o)
		}
	}

	return ih
}
示例#3
0
func Open() *iup.Error {
	C.IupPPlotOpen()
	return nil
}