diff options
| author | Jeff Carr <[email protected]> | 2023-03-23 12:35:12 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-03-23 12:35:12 -0500 |
| commit | d4787a1ebdd08359746516dbb72f1feaf95be5b6 (patch) | |
| tree | cb81756d61096ccf74af7c8cc9a15e4e00fe1da7 /toolkit/andlabs/structs.go | |
| parent | 6a848bf40474365cc1c0b4da9e2f7e3e10b4d627 (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 'toolkit/andlabs/structs.go')
| -rw-r--r-- | toolkit/andlabs/structs.go | 15 |
1 files changed, 13 insertions, 2 deletions
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 } |
