31 lines
854 B
Go
31 lines
854 B
Go
package gui
|
|
|
|
// import "github.com/davecgh/go-spew/spew"
|
|
|
|
|
|
/*
|
|
Get the int from the gui toolkit
|
|
because eventually this gui package should become it's own seperate go routine and never interact from the
|
|
gui subroutine back into the upstream application using the gui package
|
|
|
|
TODO: instead store the int in the Node structure? (this is probably a better idea)
|
|
because technically every interaction with the toolkit has to go through the Queue() goroutine.
|
|
Is it "has to go" or "should go"? Probably it makes sense to strictly inforce it. No "callback" functions. IPC only (go channels)
|
|
*/
|
|
/*
|
|
func (n *Node) Int() int {
|
|
return n.widget.I
|
|
}
|
|
|
|
// which name to use?
|
|
func (n *Node) Value() int {
|
|
return n.Int()
|
|
}
|
|
|
|
func (n *Node) SetValue(i int) {
|
|
log(debugGui, "gui.SetValue() START")
|
|
// FIXME: this needs to be redone
|
|
// n.toolkit.SetValue(i)
|
|
}
|
|
*/
|