From ec967fe4f828b0827b627365b7ebe9f3e7b031db Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Wed, 5 Jul 2023 17:44:08 -0400 Subject: [PATCH] Better way of representing layout hints --- object.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/object.go b/object.go index 80712fc..f954cf5 100644 --- a/object.go +++ b/object.go @@ -181,8 +181,9 @@ type ContainerBox interface { // LayoutHints are passed to a layout to tell it how to arrange child boxes. type LayoutHints struct { - Min image.Point - Max *image.Point + Bounds image.Rectangle + OverflowX bool + OverflowY bool Gap image.Point }