diff options
| author | Jeff Carr <[email protected]> | 2021-10-06 08:36:28 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2021-10-06 08:36:28 -0500 |
| commit | 504a067503e9d0dc4ce473eb1890276f485504c7 (patch) | |
| tree | b02c32453d96c6d83b7ad7a495c8156c2d9bb689 /new-structs.go | |
| parent | e93fe915a6747dce10d7314dc968ebb734265ed0 (diff) | |
CODE: start a general code refactor
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'new-structs.go')
| -rw-r--r-- | new-structs.go | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/new-structs.go b/new-structs.go new file mode 100644 index 0000000..8d65147 --- /dev/null +++ b/new-structs.go @@ -0,0 +1,29 @@ +package gui + +import "log" + +import "github.com/andlabs/ui" +import _ "github.com/andlabs/ui/winmanifest" + +type Node struct { + Name string + tag string + Width int + Height int + + uiType *ui.Control + Children []*Node +} + +func (n Node) SetName(name string) { + // n.uiType.SetName(name) + log.Println("n.uiType =", n.uiType) + return +} + +func (n Node) Append(child Node) { +// if (n.UiBox == nil) { +// return +// } + // n.uiType.Append(child, x) +} |
