Exemple #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
}
Exemple #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
}
Exemple #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
}
Exemple #4
0
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
}
Exemple #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
}