summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-19 02:52:57 -0600
committerJeff Carr <[email protected]>2024-01-19 02:52:57 -0600
commitc2a563ae37d11f8374df6c7f00661369f4d5a76f (patch)
tree433cb4dd464882258e04a57330113a9f385a96b4 /common.go
parentd9a04e92fc4211ae4c68e030a72510caadd4be66 (diff)
cleanups after node work
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'common.go')
-rw-r--r--common.go61
1 files changed, 0 insertions, 61 deletions
diff --git a/common.go b/common.go
deleted file mode 100644
index d87d0b5..0000000
--- a/common.go
+++ /dev/null
@@ -1,61 +0,0 @@
-package main
-
-import (
- "go.wit.com/widget"
-)
-
-type node struct {
- parent *node
- children []*node
-
- WidgetId int // widget ID
- WidgetType widget.WidgetType
- ParentId int // parent ID
-
- state widget.State
-
- // a reference name for programming and debuggign. Must be unique
- progname string
-
- // the text used for button labesl, window titles, checkbox names, etc
- label string
-
- // horizontal means layout widgets like books on a bookshelf
- // vertical means layout widgets like books in a stack
- // direction widget.Orientation
- direction widget.Orientation
-
- // This is how the values are passed back and forth
- // values from things like checkboxes & dropdown's
- value any
-
- strings []string
-
- // This is used for things like a slider(0,100)
- X int
- Y int
-
- // This is for the grid size & widget position
- W int
- H int
- AtW int
- AtH int
-
- vals []string // dropdown menu items
-
- // horizontal bool `default:false`
-
- hasTabs bool // does the window have tabs?
- currentTab bool // the visible tab
-
- // the internal plugin toolkit structure
- // in the gtk plugin, it has gtk things like margin & border settings
- // in the text console one, it has text console things like colors for menus & buttons
- tk *guiWidget
-}
-
-/*
-func (n *node) doUserEvent() {
- log.Log(ERROR, "doUserEvent() ERROR")
-}
-*/