Compare commits

..

2 Commits

Author SHA1 Message Date
ae5c177484 Minimum sizes make more sense now 2023-07-12 01:45:08 -04:00
facd85ef21 Add SetText method to TextBox 2023-07-08 23:49:51 -04:00

View File

@@ -109,10 +109,11 @@ type Box interface {
Window () Window Window () Window
Bounds () image.Rectangle Bounds () image.Rectangle
InnerBounds () image.Rectangle InnerBounds () image.Rectangle
MinimumSize () image.Point
SetBounds (image.Rectangle) SetBounds (image.Rectangle)
SetColor (color.Color) SetColor (color.Color)
SetBorder (...Border) SetBorder (...Border)
SetMinimumSize (int, int) SetMinimumSize (image.Point)
SetPadding (Inset) SetPadding (Inset)
SetDNDData (data.Data) SetDNDData (data.Data)
@@ -159,6 +160,8 @@ type ContentBox interface {
// TextBox is a box that contains text content. // TextBox is a box that contains text content.
type TextBox interface { type TextBox interface {
ContentBox ContentBox
SetText (string)
SetTextColor (color.Color) SetTextColor (color.Color)
SetFace (font.Face) SetFace (font.Face)
SetHAlign (Align) SetHAlign (Align)