summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2021-10-09 07:13:58 -0500
committerJeff Carr <[email protected]>2021-10-09 07:13:58 -0500
commite45a106d95e3043828735cf76aa487af837a2137 (patch)
tree443cc8be2244c1caa5a0371ad78ace8210ba601c /structs.go
parent663b031c8f22f3c58de29410c9764abf2f29b095 (diff)
NODE: walking around in the rabbit hole
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/structs.go b/structs.go
index 3bb8c05..d09efb8 100644
--- a/structs.go
+++ b/structs.go
@@ -186,32 +186,6 @@ func (s GuiBox) Append(child ui.Control, x bool) {
s.UiBox.Append(child, x)
}
-/*
-func (s GuiBox) InitTab(title string, custom func() ui.Control) *Node {
- if s.Window == nil {
- return nil
- }
- if s.Window.UiWindow == nil {
- return nil
- }
-
- window := s.Window.UiWindow
- tab := ui.NewTab()
- window.SetChild(tab)
- window.SetMargined(true)
-
- tab.Append(title, custom())
- tab.SetMargined(0, true)
- // tab.SetMargined(1, true)
-
- s.Window.UiTab = tab
- if s.node == nil {
- log.Println("Fuck node = ", s.node)
- os.Exit(-1)
- }
- return s.node
-}
-*/
func (s *GuiBox) AddTab(title string, custom ui.Control) *ui.Tab {
if s.Window == nil {