summaryrefslogtreecommitdiff
path: root/toolkit/andlabs/structs.go
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/andlabs/structs.go')
-rw-r--r--toolkit/andlabs/structs.go15
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
}