From 28b7470328707da8d9701c4af1493f4730bcd1f9 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 9 May 2023 19:04:39 -0500 Subject: working on removing newaction() Signed-off-by: Jeff Carr --- toolkit/widget.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'toolkit/widget.go') 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 ( -- cgit v1.2.3