summaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-02 23:36:33 -0600
committerJeff Carr <[email protected]>2025-02-02 23:36:33 -0600
commita5b3a934d2a2355ce2487f5b3ce52dff2f8a9047 (patch)
tree0ba579ff5665f5906f72ce965ce593df6e581edb /debug.go
parent517d844b3c8257dd796244e6a151deceabedab42 (diff)
finally can drag something else
Diffstat (limited to 'debug.go')
-rw-r--r--debug.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/debug.go b/debug.go
index 2b740d4..9dff348 100644
--- a/debug.go
+++ b/debug.go
@@ -39,8 +39,13 @@ func (w *guiWidget) dumpWidget(s string) {
if w.Visible() {
s1 += fmt.Sprintf("gocui=(%3d,%3d,%3d,%3d)",
w.gocuiSize.w0, w.gocuiSize.h0, w.gocuiSize.w1, w.gocuiSize.h1)
+ // vx0, vy0, vx1, vy1, _ := me.baseGui.ViewPosition("msg")
+ vx0, vy0, vx1, vy1, _ := me.baseGui.ViewPosition(w.cuiName)
+ s1 += fmt.Sprintf(" real=(%3d,%3d,%3d,%3d)",
+ vx0, vy0, vx1, vy1)
} else {
s1 += fmt.Sprintf(" %3s %3s %3s %3s ", "", "", "", "")
+ s1 += fmt.Sprintf(" %3s %3s %3s %3s ", "", "", "", "")
}
if w.node.Parent != nil {
if w.node.Parent.WidgetType == widget.Grid {