Better way of representing layout hints

This commit is contained in:
Sasha Koshka 2023-07-05 17:44:08 -04:00
parent 9efeaef8a8
commit ec967fe4f8
1 changed files with 3 additions and 2 deletions

View File

@ -181,8 +181,9 @@ type ContainerBox interface {
// LayoutHints are passed to a layout to tell it how to arrange child boxes. // LayoutHints are passed to a layout to tell it how to arrange child boxes.
type LayoutHints struct { type LayoutHints struct {
Min image.Point Bounds image.Rectangle
Max *image.Point OverflowX bool
OverflowY bool
Gap image.Point Gap image.Point
} }