diff options
| author | Jeff Carr <[email protected]> | 2023-03-30 08:51:33 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-03-30 08:51:33 -0500 |
| commit | 0320ebe4bb49ea80761d77af80fa208157ffdb89 (patch) | |
| tree | 6df3a9612aa081f476d1add018a456d332967ac4 /toolkit/democui/debug.go | |
| parent | 610e2adad1f30edf5f8408fa31c85224e476f4e0 (diff) | |
'hide' and 'show' works in gocui
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/democui/debug.go')
| -rw-r--r-- | toolkit/democui/debug.go | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/toolkit/democui/debug.go b/toolkit/democui/debug.go index bb2a06d..28afa0d 100644 --- a/toolkit/democui/debug.go +++ b/toolkit/democui/debug.go @@ -88,26 +88,14 @@ func dumpWidgets(g *gocui.Gui, v *gocui.View) { } } -func adjustWidgets() { - for i := 0; i <= me.highest; i++ { - w := me.widgets[i] - if (w == nil) { - continue - } - p := me.widgets[w.parentId] - if (p != nil) { - w.setParentLogical(p) - } - } -} - func (w *cuiWidget) showWidgetPlacement(b bool, s string) { log(b, "dump()", s, fmt.Sprintf("(wId,pId)=(%3d,%3d)", w.id, w.parentId), fmt.Sprintf("real()=(%3d,%3d,%3d,%3d)", w.realSize.w0, w.realSize.h0, w.realSize.w1, w.realSize.h1), "next()=(", w.nextX, ",", w.nextY, ")", "logical()=(", w.logicalSize.w0, ",", w.logicalSize.h0, ",", w.logicalSize.w1, ",", w.logicalSize.h1, ")", - w.widgetType, ",", w.name) + w.widgetType, ",", w.name, "text=", w.text) + if (w.realWidth != (w.realSize.w1 - w.realSize.w0)) { log(b, "dump()", s, "badsize()=(", w.realWidth, ",", w.realHeight, ")", |
