Added SetTexture on Object

This commit is contained in:
Sasha Koshka 2023-08-21 21:52:51 -04:00
parent 50697e4369
commit a8d5a64837
1 changed files with 4 additions and 0 deletions

View File

@ -132,6 +132,10 @@ type Box interface {
SetBounds (image.Rectangle)
// SetColor sets the background color of this Box.
SetColor (color.Color)
// SetTexture sets a repeating background texture. If the texture is
// transparent, it will be overlayed atop the color specified by
// SetColor().
SetTexture (Texture)
// SetBorder sets the Border(s) of the box. The first Border will be the
// most outset, and the last Border will be the most inset.
SetBorder (...Border)