From 213c7d153b06d3e1211d1cdeae1e4f7833cb89f7 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 31 Oct 2021 14:21:36 -0500 Subject: REFACTOR: refactor everything to gui.Node struct Signed-off-by: Jeff Carr --- main.go | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 09d105f..70e0e65 100644 --- a/main.go +++ b/main.go @@ -12,7 +12,7 @@ func Main(f func()) { ui.Main(f) } -// Other goroutines must use this +// Other goroutines must use this to access the GUI // // You can not acess / process the GUI thread directly from // other goroutines. This is due to the nature of how @@ -23,28 +23,12 @@ func Queue(f func()) { ui.QueueMain(f) } +/* func ExampleWindow() { log.Println("START gui.ExampleWindow()") - title := "Test Window" - box := InitWindow(nil, title, 0) - window := box.Window - log.Println("box =", box) - log.Println("window =", window) - box.AddDebugTab("jcarr Debug") - - window.UiWindow.Show() -} - -func DebugWindow() { - log.Println("START gui.ExampleWindow()") - - title := "Debug Window" - box := InitWindow(nil, title, 0) - window := box.Window - log.Println("box =", box) - log.Println("window =", window) - box.AddDebugTab("jcarr Debug") - - window.UiWindow.Show() + Config.Title = "ExampleWindow" + node := NewWindow() + node.AddDebugTab("jcarr Debug") } +*/ -- cgit v1.2.3