diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-02-10 17:20:34 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-02-10 17:20:34 -0500 |
| commit | ebc5d96f0614ab3b4f2073eadf22fbe554b0ec8f (patch) | |
| tree | 625376cfc4b0ee82a02e340a2fe813882b6047c4 /layout/options.go | |
| parent | 430f97bed9d758de90a72b0c06b2be1989ba2b1d (diff) | |
| download | gui-ebc5d96f0614ab3b4f2073eadf22fbe554b0ec8f.zip | |
remove layout options
Diffstat (limited to 'layout/options.go')
| -rw-r--r-- | layout/options.go | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/layout/options.go b/layout/options.go deleted file mode 100644 index 2ea0c81..0000000 --- a/layout/options.go +++ /dev/null @@ -1,34 +0,0 @@ -package layout - -import ( - "image/color" -) - -var ( - defaultBg = color.Transparent -) - -// Option is a function option for layout constructors. -type Option func(*options) - -type options struct { - bg color.Color // background color -} - -// Background sets the background color of a layout. -func Background(bg color.Color) Option { - return func(o *options) { - o.bg = bg - } -} - -// EvalOptions evaluates a list of option functions, returning the final set. -func evalOptions(o ...Option) options { - opts := options{ - bg: defaultBg, - } - for i := range o { - o[i](&opts) - } - return opts -} |