fyne/structs.go

31 lines
562 B
Go
Raw Permalink Normal View History

2024-02-27 02:21:00 -06:00
package main
import (
2025-02-14 18:25:28 -06:00
"sync"
2024-02-27 02:21:00 -06:00
"go.wit.com/toolkits/tree"
)
// stores the raw toolkit internals
type guiWidget struct {
2025-03-04 01:57:59 -06:00
parent *guiWidget
children []*guiWidget
node *tree.Node // the pointer back to the tree
cuiName string
Width int
Height int
2024-02-27 02:21:00 -06:00
c int
val map[string]int
}
2025-02-14 18:25:28 -06:00
var initOnce sync.Once // run initPlugin() only once
var me config // It's probably a terrible idea to call this 'me'
2024-02-27 02:21:00 -06:00
type config struct {
treeRoot *tree.Node // the base of the binary tree. it should have id == 0
myTree *tree.TreeInfo
exit bool
}