diff options
| author | Jeff Carr <[email protected]> | 2023-03-01 11:35:36 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-03-01 11:35:36 -0600 |
| commit | 8dbf5a09097b7868e9218bf98716c57eac998a10 (patch) | |
| tree | ab3bdfeaf5a59a55de9d2a6661d2d824090491e5 /toolkit/andlabs/structs.go | |
| parent | f3bb68396afa7452ecf1c8d4744c825a9d81057c (diff) | |
lots cleaner code between the pluginv0.6.1
Queue() around SetText is helping userspace crashing
merge forceDump(bool) into Dump()
debugging output configuration is pretty clean
keep cutting down duplicate things
--gui-verbose flag works
make label "standard" code
add debug.FreeOSMemory()
move the GO language internals to display in the GUI
update push to do tags and go to github.com/wit-go/
remove the other license file
it might be confusing golang.org and github
proper WidgetType
added a Quit() button
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/andlabs/structs.go')
| -rw-r--r-- | toolkit/andlabs/structs.go | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/toolkit/andlabs/structs.go b/toolkit/andlabs/structs.go index cf3afaf..45b6d1d 100644 --- a/toolkit/andlabs/structs.go +++ b/toolkit/andlabs/structs.go @@ -10,31 +10,27 @@ type andlabsT struct { id string Name string + Type toolkit.WidgetType Width int Height int tw *toolkit.Widget - - OnChanged func(*andlabsT) - OnExit func(*andlabsT) - - Custom func() + parent *andlabsT uiBox *ui.Box - uiBox2 *ui.Box // temporary hack while implementing tabs uiButton *ui.Button uiControl *ui.Control uiCombobox *ui.Combobox uiCheckbox *ui.Checkbox uiEntry *ui.Entry - uiMultilineEntry *ui.MultilineEntry uiGroup *ui.Group uiLabel *ui.Label uiSlider *ui.Slider uiSpinbox *ui.Spinbox uiTab *ui.Tab - uiText *ui.EditableCombobox uiWindow *ui.Window - UiWindowBad *ui.Window + // UiWindowBad *ui.Window // erase this + uiMultilineEntry *ui.MultilineEntry + uiEditableCombobox *ui.EditableCombobox // 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 |
