summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2021-10-07 06:48:50 -0500
committerJeff Carr <[email protected]>2021-10-07 06:48:50 -0500
commit9aa141261b89e218d121498f37144db822c09ea7 (patch)
tree82b7fb11efafc765becc29f7fdfdab049a41da56 /structs.go
parent54cf41663c2d94182370a2a4b14526f35c601131 (diff)
NODE: continued work on implementing a node tree
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go19
1 files changed, 1 insertions, 18 deletions
diff --git a/structs.go b/structs.go
index e1993a9..9cec347 100644
--- a/structs.go
+++ b/structs.go
@@ -3,7 +3,6 @@ package gui
import (
"image/color"
"log"
- "os"
"github.com/andlabs/ui"
"golang.org/x/image/font"
@@ -135,23 +134,6 @@ func (s GuiBox) Append(child ui.Control, x bool) {
}
/*
-func (w GuiWindow) InitWindow(title string) *GuiBox {
- if w.UiWindow == nil {
- log.Println("gui.InitBox() THIS SHOULD NEVER HAPPEN. Window doesn't exist", w)
- return nil
- }
- tab := ui.NewTab()
- w.UiWindow.SetChild(tab)
- w.UiWindow.SetMargined(true)
-
- tab.Append(title, InitBlankWindow())
- tab.SetMargined(0, true)
-
- w.UiTab = tab
- return nil
-}
-*/
-
func (s GuiBox) InitTab(title string, custom func() ui.Control) *Node {
if s.Window == nil {
return nil
@@ -176,6 +158,7 @@ func (s GuiBox) InitTab(title string, custom func() ui.Control) *Node {
}
return s.node
}
+*/
func (s *GuiBox) AddTab(title string, custom ui.Control) *ui.Tab {
if s.Window == nil {