summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-03-23 12:35:12 -0500
committerJeff Carr <[email protected]>2023-03-23 12:35:12 -0500
commitd4787a1ebdd08359746516dbb72f1feaf95be5b6 (patch)
treecb81756d61096ccf74af7c8cc9a15e4e00fe1da7 /structs.go
parent6a848bf40474365cc1c0b4da9e2f7e3e10b4d627 (diff)
Squashed commit of the following:v0.7.3
boxes now exist and are tracked in the binary tree create for group and grid works gocui plugin no longer works. TODO: fix in next release converted everything from plugin to Action() can remove send() tab and window are now action() flags moved to action() ready for new release pad() margion() border() all work move worked! go.wit.com attept 578th try adds an early grid widget. won't work until chan andlabs/ui grid (X,Y) works right actually can put things in places in a grid Queue() means shit doesn't look right on grids lots of fucking around. why am I wasting time on image? wow. the crazy doAppend() thing is gone implement Action Show() and Hide() Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go16
1 files changed, 15 insertions, 1 deletions
diff --git a/structs.go b/structs.go
index 87284a2..5477d2e 100644
--- a/structs.go
+++ b/structs.go
@@ -59,11 +59,25 @@ type Node struct {
widget toolkit.Widget
- // deprecate these and use toolkit.Widget
Name string
+
+ // used for Windows
Width int
Height int
+ // used for anything that needs a range
+ X int
+ Y int
+
+ // used for grids and tables
+ NextX int
+ NextY int
+
+ // used for values
+ I int
+ S string
+ B bool
+
// this function is run when there are mouse or keyboard events
Custom func()