Example #1
0
func builtInIcon(X *xgbutil.XUtil) *xgraphics.Image {
	img, err := xgraphics.NewBytes(X, bindata.WingoPng())
	if err != nil {
		logger.Warning.Printf("Could not get built in icon image because: %v",
			err)
		return nil
	}
	return img
}
Example #2
0
func builtInIcon() *xgraphics.Image {
	img, err := xgraphics.NewBytes(X, misc.WingoPng)
	if err != nil {
		logger.Warning.Printf("Could not get built in icon image because: %v",
			err)
		return nil
	}
	return img
}
Example #3
0
func builtInButton(builtInData []byte) *xgraphics.Image {

	img, err := xgraphics.NewBytes(X, builtInData)
	if err != nil {
		logger.Warning.Printf("Could not get built in button image because: %v",
			err)
		return nil
	}
	return img
}
Example #4
0
File: full.go Project: mkrull/wingo
func builtInButton(X *xgbutil.XUtil,
	builtInData []byte) *xgraphics.Image {

	img, err := xgraphics.NewBytes(X, builtInData)
	if err != nil {
		logger.Error.Printf("Could not get built in button image because: %v",
			err)
		panic("")
	}
	return img
}
Example #5
0
func builtInButton(X *xgbutil.XUtil,
	loadBuiltIn func() []byte) *xgraphics.Image {

	img, err := xgraphics.NewBytes(X, loadBuiltIn())
	if err != nil {
		logger.Warning.Printf("Could not get built in button image because: %v",
			err)
		return nil
	}
	return img
}