diff options
Diffstat (limited to 'find.go')
| -rw-r--r-- | find.go | 34 |
1 files changed, 17 insertions, 17 deletions
@@ -45,25 +45,25 @@ func (r rectType) inRect(w int, h int) bool { func (tk *guiWidget) findByXYreal(w int, h int) []*guiWidget { var widgets []*guiWidget - if !tk.Visible() { - // ignore widgets that are not visible - } else { + // if !tk.Visible() { + // ignore widgets that are not visible + // } else { - // check the location to see if this is under (W,H) - // if it is, return this widget - // if (tk.gocuiSize.w0 <= w) && (w <= tk.gocuiSize.w1) && - // (tk.gocuiSize.h0 <= h) && (h <= tk.gocuiSize.h1) { - if tk.gocuiSize.inRect(w, h) { - widgets = append(widgets, tk) - } else { - // if (tk.full.w0 <= w) && (w <= tk.full.w1) && - // (tk.full.h0 <= h) && (h <= tk.full.h1) { - if tk.full.inRect(w, h) { - widgets = append(widgets, tk) - } - // log.Log(GOCUI, "findByXY() found", widget.node.WidgetType, w, h) - } + // check the location to see if this is under (W,H) + // if it is, return this widget + // if (tk.gocuiSize.w0 <= w) && (w <= tk.gocuiSize.w1) && + // (tk.gocuiSize.h0 <= h) && (h <= tk.gocuiSize.h1) { + // if tk.gocuiSize.inRect(w, h) { + // widgets = append(widgets, tk) + // } else { + // if (tk.full.w0 <= w) && (w <= tk.full.w1) && + // (tk.full.h0 <= h) && (h <= tk.full.h1) { + if tk.full.inRect(w, h) { + widgets = append(widgets, tk) } + // log.Log(GOCUI, "findByXY() found", widget.node.WidgetType, w, h) + // } + // } // tk.verifyRect() // search through the children widgets in the binary tree |
