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 }
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 }
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 }
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 }
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 }