diff options
| author | Jeff Carr <[email protected]> | 2021-10-31 19:52:18 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2021-10-31 19:52:18 -0500 |
| commit | 764513474f7f03ccc7be5369a8ea6e7bcbff9071 (patch) | |
| tree | 9b6ae37e6ed2b46cf0ac963e47a037faba74e9e0 | |
| parent | 895fc511d7f96a27b27efea995d3971a2419a7be (diff) | |
BOX: remove GuiBox
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | box.go | 6 | ||||
| -rw-r--r-- | find.go | 4 | ||||
| -rw-r--r-- | new-structs.go | 3 |
3 files changed, 10 insertions, 3 deletions
@@ -1,7 +1,7 @@ package gui import "log" -import "os" +// import "os" // import "reflect" import "github.com/andlabs/ui" @@ -102,12 +102,13 @@ func (n *Node) AddBox(axis int, name string) *Node { return newNode } +/* func (b *GuiBox) NewBox(axis int, name string) *GuiBox { log.Println("gui.NewBox() START") n := b.FindNode() if (n == nil) { log.Println("gui.NewBox() SERIOUS ERROR. CAN NOT FIND NODE") - os.Exit(0) + panic("gui.NewBox() SERIOUS ERROR. CAN NOT FIND NODE") } else { log.Println("gui.NewBox() node =", n.Name) } @@ -128,6 +129,7 @@ func (b *GuiBox) NewBox(axis int, name string) *GuiBox { // panic("gui.NewBox") return newbox } +*/ func HardBox(gw *GuiWindow, axis int, name string) *GuiBox { log.Println("HardBox() START axis =", axis) @@ -17,6 +17,7 @@ func (n *Node) FindControl() *ui.Control { return n.uiControl } +/* func (n *Node) FindBox() *GuiBox { if (n.box != nil) { return n.box @@ -34,11 +35,13 @@ func (n *Node) FindWindowBox() *GuiBox { } return n.box } +*/ func (w *GuiWindow) FindNode() *Node { return w.node } +/* func (b *GuiBox) FindNode() *Node { log.Println("gui.FindNode() on GuiBox") if b.node != nil { @@ -50,6 +53,7 @@ func (b *GuiBox) FindNode() *Node { os.Exit(-1) return nil } +*/ func FindWindow(s string) *GuiWindow { for name, window := range Data.WindowMap { diff --git a/new-structs.go b/new-structs.go index b75fe0b..109b4af 100644 --- a/new-structs.go +++ b/new-structs.go @@ -97,10 +97,11 @@ func (n *Node) Dump() { } } - +/* func (n *Node) SetBox(box *GuiBox) { n.box = box } +*/ func (n *Node) SetName(name string) { // n.uiType.SetName(name) |
