예제 #1
0
파일: theme.go 프로젝트: dlintw/wingo
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
}
예제 #2
0
파일: theme.go 프로젝트: BurntSushi/wingo
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
}
예제 #3
0
파일: theme.go 프로젝트: BurntSushi/wingo
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
}
예제 #4
0
파일: full.go 프로젝트: 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
}
예제 #5
0
파일: theme.go 프로젝트: dlintw/wingo
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
}