summaryrefslogtreecommitdiff
path: root/find.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-08 12:05:25 -0600
committerJeff Carr <[email protected]>2025-02-08 12:05:25 -0600
commit665d2289e2ce910326cacb2e6b8c35c5e241c279 (patch)
tree01681b2e03c7a68cb122b3fae70e065d99142e1a /find.go
parented024aac7025cdf41d2ea6f0c5a83f1694982da1 (diff)
tiggers gocui on startup
Diffstat (limited to 'find.go')
-rw-r--r--find.go34
1 files changed, 17 insertions, 17 deletions
diff --git a/find.go b/find.go
index 795f7ee..189d84b 100644
--- a/find.go
+++ b/find.go
@@ -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