diff options
| author | Jeff Carr <[email protected]> | 2025-02-04 15:48:14 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-04 15:48:14 -0600 |
| commit | a81e931b9ac830f7812d696e0ecc182fb3a00b7f (patch) | |
| tree | db4dd540ecac2fe42eaf1c9b9422121e798f0392 /debug.go | |
| parent | 6237bf89c3c74abcab8544d7fe93d7b7d89ffbab (diff) | |
still notsure
Diffstat (limited to 'debug.go')
| -rw-r--r-- | debug.go | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -27,7 +27,7 @@ func (w *guiWidget) dumpTree(s string) { func (tk *guiWidget) dumpWidget(s string) { var s1 string var pId int - tk.verifyRect() + // tk.verifyRect() if tk.node.Parent == nil { log.Log(INFO, "showWidgetPlacement() parent == nil", tk.node.WidgetId, tk.cuiName) pId = 0 @@ -38,16 +38,12 @@ func (tk *guiWidget) dumpWidget(s string) { sizeW, sizeH := tk.Size() s1 += fmt.Sprintf("size=(%3d,%3d)", sizeW, sizeH) if tk.Visible() { - r := tk.getFullSize() s1 += fmt.Sprintf("gocui=(%3d,%3d,%3d,%3d)", tk.gocuiSize.w0, tk.gocuiSize.h0, tk.gocuiSize.w1, tk.gocuiSize.h1) - // vx0, vy0, vx1, vy1, _ := me.baseGui.ViewPosition("msg") - // vw0, vh0, vw1, vh1, _ := me.baseGui.ViewPosition(tk.v.Name()) - s1 += fmt.Sprintf(" full=(%3d,%3d,%3d,%3d)", r.w0, r.h0, r.w1, r.h1) } else { s1 += fmt.Sprintf(" %3s %3s %3s %3s ", "", "", "", "") - s1 += fmt.Sprintf(" %3s %3s %3s %3s ", "", "", "", "") } + s1 += fmt.Sprintf(" full=(%3d,%3d,%3d,%3d)", tk.full.w0, tk.full.h0, tk.full.w1, tk.full.h1) if tk.node.Parent != nil { if tk.node.Parent.WidgetType == widget.Grid { s1 += fmt.Sprintf("At(%3d,%3d) ", tk.node.State.AtW, tk.node.State.AtH) |
