summaryrefslogtreecommitdiff
path: root/toolkit/democui/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-03-26 17:19:20 -0500
committerJeff Carr <[email protected]>2023-03-26 17:19:20 -0500
commit6013fde8332e8ecbffaf1a0977ba2e1da8ea8775 (patch)
tree3f9ccd75e8699974f3412fdd79a20173672c19c2 /toolkit/democui/structs.go
parent6f91f5e080e06cdc0f34b13d23e5fd16ea37259a (diff)
improvements towards a working dns control panel
democui has the help menu try to add mouse support to gocui make a direct access method Margin() and Pad() tests add SPEW also push devel branch to github Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/democui/structs.go')
-rw-r--r--toolkit/democui/structs.go32
1 files changed, 32 insertions, 0 deletions
diff --git a/toolkit/democui/structs.go b/toolkit/democui/structs.go
new file mode 100644
index 0000000..a73b9e7
--- /dev/null
+++ b/toolkit/democui/structs.go
@@ -0,0 +1,32 @@
+// Copyright 2014 The gocui Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package main
+
+import (
+ "os"
+ "github.com/awesome-gocui/gocui"
+)
+
+const delta = 1
+
+var (
+ g *gocui.Gui
+ Custom func(string)
+
+ initialMouseX, initialMouseY, xOffset, yOffset int
+ globalMouseDown, msgMouseDown, movingMsg bool
+
+ views = []string{}
+ curView = -1
+ idxView = 0
+ currentX = 5
+ currentY = 2
+ groupSize = 0
+ baseGui *gocui.Gui
+ helpLabel *gocui.View
+ err error
+ ch chan(func ())
+ outf *os.File
+)