diff options
| author | Jeff Carr <[email protected]> | 2022-10-16 08:07:13 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2022-10-16 08:07:13 -0500 |
| commit | 2141e04328dcf4e4d6857fcc0a7cb551fc84fa07 (patch) | |
| tree | f8b2a5d8cf17f9ccfcfa8c1699fe4a52ea8338e2 /structs.go | |
| parent | 3c899365154e48aefbc0b5ee48cd089f49339cb2 (diff) | |
Add slander and spinbox in toolkit/andlabs
fix the helloworld demo
move slider into toolkit/
move more into the toolkit directory
add spinbox()
fix example
minor update
fix examples
Fix andlabs.ui.Slider() to work again
correctly implement custom OnChange() callback
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -7,7 +7,9 @@ import ( "github.com/andlabs/ui" "golang.org/x/image/font" - _ "github.com/andlabs/ui/winmanifest" + // "github.com/davecgh/go-spew/spew" + + // _ "github.com/andlabs/ui/winmanifest" ) // @@ -24,11 +26,12 @@ type GuiConfig struct { Height int Exit func(*Node) - Debug bool - DebugNode bool - DebugTabs bool - DebugTable bool - DebugWindow bool + Debug bool + DebugNode bool + DebugTabs bool + DebugTable bool + DebugWindow bool + DebugToolkit bool depth int counter int // used to make unique ID's @@ -171,6 +174,8 @@ func (b *GuiBox) SetNode(n *Node) { func (b *GuiBox) Append(child ui.Control, x bool) { if b.UiBox == nil { + // spew.Dump(b) + b.Dump() panic("GuiBox.Append() can't work. UiBox == nil") return } |
