Better way of representing layout hints
This commit is contained in:
parent
9efeaef8a8
commit
ec967fe4f8
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue