diff options
Diffstat (limited to 'lib/ui/borders.go')
-rw-r--r-- | lib/ui/borders.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/ui/borders.go b/lib/ui/borders.go index cffd3ca3..7a757595 100644 --- a/lib/ui/borders.go +++ b/lib/ui/borders.go @@ -66,3 +66,10 @@ func (bordered *Bordered) Draw(ctx *Context) { subctx := ctx.Subcontext(x, y, width, height) bordered.content.Draw(subctx) } + +func (bordered *Bordered) MouseEvent(localX int, localY int, event tcell.Event) { + switch content := bordered.content.(type) { + case Mouseable: + content.MouseEvent(localX, localY, event) + } +} |