From d4787a1ebdd08359746516dbb72f1feaf95be5b6 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 23 Mar 2023 12:35:12 -0500 Subject: Squashed commit of the following: 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 --- toolkit/andlabs/structs.go | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'toolkit/andlabs/structs.go') diff --git a/toolkit/andlabs/structs.go b/toolkit/andlabs/structs.go index 3353401..9b053af 100644 --- a/toolkit/andlabs/structs.go +++ b/toolkit/andlabs/structs.go @@ -10,15 +10,16 @@ type andlabsT struct { id string Name string - Type toolkit.WidgetType + // Type toolkit.WidgetType Width int Height int tw *toolkit.Widget parent *andlabsT + uiControl ui.Control + uiBox *ui.Box uiButton *ui.Button - uiControl *ui.Control uiCombobox *ui.Combobox uiCheckbox *ui.Checkbox uiEntry *ui.Entry @@ -31,11 +32,21 @@ type andlabsT struct { uiMultilineEntry *ui.MultilineEntry uiEditableCombobox *ui.EditableCombobox uiGrid *ui.Grid + uiImage *ui.Image + gridX int + gridY int // used as a counter to work around limitations of widgets like combobox // this is probably fucked up and in many ways wrong because of unsafe goroutine threading // but it's working for now due to the need for need for a correct interaction layer betten toolkits c int + i int + b bool + s string val map[int]string + + // andlabs/ui only accesses widget id numbers + boxC int // how many things on in a box + boxW map[int]int // find a widget in a box text string } -- cgit v1.2.3