ContainerBox can now be aligned as well

This commit is contained in:
Sasha Koshka 2023-07-13 03:00:50 -04:00
parent 573212fe7d
commit 4dbd86cec3
1 changed files with 3 additions and 2 deletions

View File

@ -155,6 +155,7 @@ type ContentBox interface {
ContentBounds () image.Rectangle
ScrollTo (image.Point)
OnContentBoundsChange (func ()) event.Cookie
SetAlign (x, y Align)
}
// TextBox is a box that contains text content.
@ -165,8 +166,6 @@ type TextBox interface {
SetTextColor (color.Color)
SetFace (font.Face)
SetWrap (bool)
SetHAlign (Align)
SetVAlign (Align)
}
// ContentBox is a box that can contain child objects. It arranges them
@ -188,6 +187,8 @@ type LayoutHints struct {
Bounds image.Rectangle
OverflowX bool
OverflowY bool
AlignX Align
AlignY Align
Gap image.Point
}