summaryrefslogtreecommitdiff
path: root/new-structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2021-10-06 08:36:28 -0500
committerJeff Carr <[email protected]>2021-10-06 08:36:28 -0500
commit504a067503e9d0dc4ce473eb1890276f485504c7 (patch)
treeb02c32453d96c6d83b7ad7a495c8156c2d9bb689 /new-structs.go
parente93fe915a6747dce10d7314dc968ebb734265ed0 (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.go29
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)
+}