diff options
| author | Jeff Carr <[email protected]> | 2025-02-06 23:49:18 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-06 23:49:18 -0600 |
| commit | c2f8cac4a9f9737eee5983ca7ce81fde8c102715 (patch) | |
| tree | e33ca8bb88def7e0f9d4b1946c3f59a30cc0e049 /structs.go | |
| parent | 7e47ca98435ed6315f2f0c15d41a1c817576f0f3 (diff) | |
basic start of a stubbed out 'textbox' entry box
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -28,14 +28,13 @@ var me config // it got me here, but now it's time to clean it up for good // I can't get a GO plugins that use protobuf to load yet (versioning mismatch) type config struct { - baseGui *gocui.Gui // the main gocui handle - treeRoot *tree.Node // the base of the binary tree. it should have id == 0 - myTree *tree.TreeInfo // ? - ctrlDown *tree.Node // shown if you click the mouse when the ctrl key is pressed - currentWindow *guiWidget // this is the current tab or window to show - helpLabel *gocui.View // ? - showHelp bool // toggle boolean for the help menu (deprecate?) - // dropdownW *guiWidget // grab the dropdown choices from this widget + baseGui *gocui.Gui // the main gocui handle + treeRoot *tree.Node // the base of the binary tree. it should have id == 0 + myTree *tree.TreeInfo // ? + ctrlDown *tree.Node // shown if you click the mouse when the ctrl key is pressed + currentWindow *guiWidget // this is the current tab or window to show + helpLabel *gocui.View // ? + showHelp bool // toggle boolean for the help menu (deprecate?) FramePadW int `default:"1" dense:"0"` // When the widget has a frame, like a button, it adds 2 lines runes on each side FramePadH int `default:"1" dense:"0"` // When the widget has a frame, like a button, it adds 2 lines runes on each side PadW int `default:"1" dense:"0"` // pad spacing @@ -67,6 +66,7 @@ type config struct { stdout stdout // information for the STDOUT window showDebug bool // todo: move this into config struct dropdown dropdown // the dropdown menu + textbox dropdown // the textbox popup window allwin []*guiWidget // for tracking which window is next downW int // where the mouse was pressed down downH int // where the mouse was pressed down @@ -100,6 +100,7 @@ type dropdown struct { h int // the height active bool // is the dropdown menu currently in use? init bool // moves the window offscreen on startup + wId int // the widget id to use // dtoggle bool // is a dropdown or combobox currently active? } |
