3b09c07e7a
This introduces a new interface `Clickable`. I'd imagine this would be implemented for most widgets eventually and would allow for programs run in the terminal to also have their mouse events forwarded to them. For the tabs it was relatively simple to check that the position of the click is within the boxes for the tabs. For other components I'd imagine that some state representing their currently drawn bounding box would be useful. |
||
---|---|---|
.. | ||
borders.go | ||
context.go | ||
fill.go | ||
grid.go | ||
interfaces.go | ||
invalidatable.go | ||
stack.go | ||
tab.go | ||
text.go | ||
textinput.go | ||
ui.go |