add the protobuf to the struct

This commit is contained in:
Jeff Carr 2025-02-19 04:34:24 -06:00
parent f36f9cfd0f
commit 57b6efd831
1 changed files with 34 additions and 32 deletions

View File

@ -18,6 +18,7 @@ import (
"github.com/awesome-gocui/gocui"
"go.wit.com/lib/protobuf/guipb"
log "go.wit.com/log"
"go.wit.com/toolkits/tree"
)
@ -186,6 +187,7 @@ type guiWidget struct {
parent *guiWidget // mirrors the binary node tree
children []*guiWidget // mirrors the binary node tree
node *tree.Node // the pointer back to the tree
pb *guipb.Widget // the guipb Widget
windowFrame *guiWidget // this is the frame for a window widget
internal bool // indicates the widget is internal to gocui and should be treated differently
hasTabs bool // does the window have tabs?