diff options
Diffstat (limited to 'find.go')
| -rw-r--r-- | find.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -53,6 +53,7 @@ func findByXYreal(widget *guiWidget, w int, h int) []*guiWidget { return widgets } +// returns the "highest priority widget under the mouse func findUnderMouse() *guiWidget { w, h := me.baseGui.MousePosition() @@ -88,6 +89,7 @@ func findUnderMouse() *guiWidget { return found } +// panics. todo: fix ctrl-mouse click? // find the widget under the mouse click func ctrlDown(g *gocui.Gui, v *gocui.View) error { var found *guiWidget |
