示例#1
0
func GLCanvas(opts ...interface{}) *Ihandle {
	OpenControlLib()

	ih := (*Ihandle)(C.IupGLCanvas(nil))

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

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

	ih := (*iup.Ihandle)(C.IupGLCanvas(nil))

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

	return ih
}