summaryrefslogtreecommitdiff
path: root/nocui/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'nocui/common.go')
-rw-r--r--nocui/common.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/nocui/common.go b/nocui/common.go
index bd7b145..9a13323 100644
--- a/nocui/common.go
+++ b/nocui/common.go
@@ -42,6 +42,7 @@ type node struct {
// 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
@@ -164,6 +165,22 @@ func PluginChannel() chan widget.Action {
return pluginChan
}
+/*
+func convertString(val any) string {
+ switch v := val.(type) {
+ case bool:
+ n.B = val.(bool)
+ case string:
+ n.label = val.(string)
+ n.S = val.(string)
+ case int:
+ n.I = val.(int)
+ default:
+ log.Error(errors.New("Set() unknown type"), "v =", v)
+ }
+}
+*/
+
func getString(A any) string {
if A == nil {
log.Warn("getString() got nil")