summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-26 01:59:42 -0500
committerJeff Carr <[email protected]>2023-04-26 01:59:42 -0500
commit7af6242cbfbd2d18461415e8421146f94093e8ca (patch)
tree0bfdbc452b83cef498d32ad813bd28f0d2dbc149 /window.go
parent4b9b381bcf02c212d72f55d4738943941e843250 (diff)
gocui: closer to working layout
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'window.go')
-rw-r--r--window.go44
1 files changed, 0 insertions, 44 deletions
diff --git a/window.go b/window.go
index ebf4a85..7189fcc 100644
--- a/window.go
+++ b/window.go
@@ -5,7 +5,6 @@ import (
)
// This routine creates a blank window with a Title and size (W x H)
-//
func (n *Node) NewWindow(title string) *Node {
var newNode *Node
@@ -25,46 +24,3 @@ func (n *Node) NewWindow(title string) *Node {
return newNode
}
-
-/*
-// This routine can not have any arguements due to the nature of how
-// it can be passed via the 'andlabs/ui' queue which, because it is
-// cross platform, must pass UI changes into the OS threads (that is
-// my guess).
-func NewWindow() *Node {
- var newNode *Node
- var custom func()
-
- // If the user didn't set a custom Exit() use the standard exit() function
- // This makes sure the GUI properly closes everything (GTK, QT, console ui, etc exit)
- if (Config.Exit != nil) {
- log(debugGui, "setting a custom exit")
- custom = func() {
- log(debugChange, "Running a custom exit()", Config.Exit)
- log(debugChange, "Running a custom exit() Config.Title =", Config.Title)
- log(debugChange, "Running a custom exit() Config.Width =", Config.Width)
- Config.Exit(newNode)
- }
- } else {
- log(debugGui, "setting the standard exit")
- custom = func () {
- log(debugChange, "Running StandardExit()")
- StandardExit()
- }
- }
- // Windows are created off of the master node of the Binary Tree
- newNode = Config.rootNode.newNode(Config.Title, toolkit.Window, custom)
-
- log(logInfo, "NewWindow()", Config.Title)
-
- var a toolkit.Action
- a.ActionType = toolkit.Add
- a.Width = Config.Width
- a.Height = Config.Height
- a.Name = Config.Title
- a.Text = Config.Title
- newaction(&a, newNode, Config.rootNode)
-
- return newNode
-}
-*/