summaryrefslogtreecommitdiff
path: root/new-structs.go
blob: 8d65147a43ab9318799dea41bafc76d0e1c1d07e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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)
}