summaryrefslogtreecommitdiff
path: root/toolkit/gocui/plugin.go
blob: 5be26f3bfba682e0d453800fc46ec8546751cea7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package main

import (
	"log"

	"git.wit.org/wit/gui/toolkit"

	"github.com/awesome-gocui/gocui"
)

// This is a map between the widgets in wit/gui and the internal structures of gocui
var viewWidget map[*gocui.View]*toolkit.Widget
var stringWidget map[string]*toolkit.Widget

func Quit() {
	baseGui.Close()
}

// This lists out the know mappings
func listMap() {
	for v, w := range viewWidget {
		log.Println("view =", v.Name, "widget name =", w.Name)
	}
	for s, w := range stringWidget {
		log.Println("string =", s, "widget =", w)
	}
}