diff options
| author | Jeff Carr <[email protected]> | 2025-02-01 15:15:05 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-01 15:15:05 -0600 |
| commit | 96fdfd13386472039dd75b0c622bb97b9987173a (patch) | |
| tree | b0d0d08c8d826efc315970bd7a32a7f2354dbddd /find.go | |
| parent | 8d007ec10d8ea58d3bb1f85ec2ce2e99c3604231 (diff) | |
remove dumb old stuff and clean up struct.go
Diffstat (limited to 'find.go')
| -rw-r--r-- | find.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -44,7 +44,7 @@ func findByXYreal(widget *guiWidget, w int, h int) []*guiWidget { if (widget.gocuiSize.w0 <= w) && (w <= widget.gocuiSize.w1) && (widget.gocuiSize.h0 <= h) && (h <= widget.gocuiSize.h1) { widgets = append(widgets, widget) - // log.Log(GOCUI, "findByXY() found", widget.WidgetType, w, h) + // log.Log(GOCUI, "findByXY() found", widget.node.WidgetType, w, h) } } @@ -69,20 +69,20 @@ func findUnderMouse() *guiWidget { // up the window widgets, then it will ignore everything else // and allow the user (hopefully) to redraw or switch windows // TODO: display the window widgets on top - if w.WidgetType == widget.Window { + if w.node.WidgetType == widget.Window { return w } } // return anything else that is interactive for _, w := range widgets { - if w.WidgetType == widget.Button { + if w.node.WidgetType == widget.Button { return w } - if w.WidgetType == widget.Combobox { + if w.node.WidgetType == widget.Combobox { return w } - if w.WidgetType == widget.Checkbox { + if w.node.WidgetType == widget.Checkbox { return w } w.dumpWidget("findUnderMouse() found something unknown") |
