summaryrefslogtreecommitdiff
path: root/toolkit/widget.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-05-09 19:04:39 -0500
committerJeff Carr <[email protected]>2023-05-09 19:04:39 -0500
commit28b7470328707da8d9701c4af1493f4730bcd1f9 (patch)
treeb92d891673050347a523c3798e8e63b6a831cb77 /toolkit/widget.go
parente43f42a3ab5afa6fd72673df2a5bd9a7615694d2 (diff)
working on removing newaction()
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/widget.go')
-rw-r--r--toolkit/widget.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/toolkit/widget.go b/toolkit/widget.go
index 4806f1c..655a0db 100644
--- a/toolkit/widget.go
+++ b/toolkit/widget.go
@@ -32,21 +32,23 @@ type Action struct {
I int
S string
- A any // switch to this or deprecate this? pros/cons?
-
// This is used for things like a slider(0,100)
X int
Y int
- // This is used for the widget's grid position
+ // This is for the grid size & widget position
W int
H int
+ AtW int
+ AtH int
// Put space around elements to improve look & feel
Margin bool
// Make widgets fill up the space available
Expand bool
+
+ A any // switch to this or deprecate this? pros/cons?
}
const (