From 7d67ae7528fdda142e51dda401e9f801563c947a Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 4 Sep 2025 18:47:19 -0500 Subject: [PATCH] added Width --- generateGui.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/generateGui.go b/generateGui.go index f1ba384..4da967e 100644 --- a/generateGui.go +++ b/generateGui.go @@ -235,6 +235,7 @@ func guiMain(w io.Writer, FRUITS string, FRUIT string) { fmt.Fprintln(w, " f func(*"+FRUIT+") string") fmt.Fprintln(w, " Custom func(*"+FRUIT+")") fmt.Fprintln(w, " order int") + fmt.Fprintln(w, " Width int") fmt.Fprintln(w, "}") fmt.Fprintln(w, "") fmt.Fprintln(w, "type "+FRUIT+"ButtonFunc struct {") @@ -242,6 +243,7 @@ func guiMain(w io.Writer, FRUITS string, FRUIT string) { fmt.Fprintln(w, " f func(*"+FRUIT+") string") fmt.Fprintln(w, " Custom func(*"+FRUIT+")") fmt.Fprintln(w, " order int") + fmt.Fprintln(w, " Width int") fmt.Fprintln(w, "}") fmt.Fprintln(w, "") fmt.Fprintln(w, "type "+FRUIT+"IntFunc struct {") @@ -249,6 +251,7 @@ func guiMain(w io.Writer, FRUITS string, FRUIT string) { fmt.Fprintln(w, " f func(*"+FRUIT+") int") fmt.Fprintln(w, " Custom func(*"+FRUIT+")") fmt.Fprintln(w, " order int") + fmt.Fprintln(w, " Width int") fmt.Fprintln(w, "}") fmt.Fprintln(w, "") fmt.Fprintln(w, "type "+FRUIT+"TimeFunc struct {") @@ -256,6 +259,7 @@ func guiMain(w io.Writer, FRUITS string, FRUIT string) { fmt.Fprintln(w, " f func(*"+FRUIT+") time.Time") fmt.Fprintln(w, " Custom func(*"+FRUIT+")") fmt.Fprintln(w, " order int") + fmt.Fprintln(w, " Width int") fmt.Fprintln(w, "}") fmt.Fprintln(w, "") fmt.Fprintln(w, "type "+FRUITS+"Table struct {")