update doc

pull/963/head
DevHegemony 2 months ago
parent 9d79348686
commit e117f42adc

@ -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

Loading…
Cancel
Save