From e117f42adcf6b2fcacff858e41b8211d4e477498 Mon Sep 17 00:00:00 2001 From: DevHegemony Date: Thu, 28 Mar 2024 20:28:09 -0400 Subject: [PATCH] update doc --- box.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/box.go b/box.go index ec7ec91..59f8ac7 100644 --- a/box.go +++ b/box.go @@ -260,8 +260,8 @@ func (b *Box) InRect(x, y int) bool { return x >= rectX && x < rectX+width && y >= rectY && y < rectY+height } -// InRect returns true if the given coordinate is within the bounds of the box's -// rectangle. +// InInnerRect returns true if the given coordinate is within the bounds of the box's +// inner rectangle (within the border, and padding). func (b *Box) InInnerRect(x, y int) bool { rectX, rectY, width, height := b.GetInnerRect() return x >= rectX && x < rectX+width && y >= rectY && y < rectY+height