Versions in this module Expand all Collapse all v0 v0.1.0 Apr 29, 2021 Changes in this version + func GetLogo() []image.Image + type Box struct + func NewBox(child Drawable) *Box + func (b *Box) Bounds() image.Rectangle + func (b *Box) Child() Drawable + func (b *Box) Draw(screen *ebiten.Image) + func (b *Box) PreferredSize() (int, int) + func (b *Box) SetBorder(c color.Color) + func (b *Box) SetMargin(margin int) + func (b *Box) SetPadding(padding int) + func (b *Box) SetPosition(x, y int) + func (b *Box) SetSize(sx, sy int) + func (b *Box) SetVisible(visible bool) + func (b *Box) Update() error + type Button struct + func NewButton(img *model.Sprite, scale int, callback ButtonHandler) *Button + func (b *Button) Bounds() image.Rectangle + func (b *Button) Draw(screen *ebiten.Image) + func (b *Button) PreferredSize() (int, int) + func (b *Button) SetPosition(x, y int) + func (b *Button) SetSize(sx, sy int) + func (b *Button) SetVisible(visible bool) + func (b *Button) Update() error + type ButtonHandler func(btn ebiten.MouseButton) + type Drawable interface + Bounds func() image.Rectangle + Draw func(screen *ebiten.Image) + PreferredSize func() (sx, sy int) + SetPosition func(x, y int) + SetSize func(sx, sy int) + SetVisible func(visible bool) + Update func() error + type Grid struct + func NewGrid(rows, cols int) *Grid + func (g *Grid) Append(child Drawable) + func (g *Grid) Bounds() image.Rectangle + func (g *Grid) Children() []Drawable + func (g *Grid) Clear() + func (g *Grid) Draw(screen *ebiten.Image) + func (g *Grid) PreferredSize() (int, int) + func (g *Grid) SetPosition(x, y int) + func (g *Grid) SetSize(sx, sy int) + func (g *Grid) SetVisible(visible bool) + func (g *Grid) Update() error + type Rectangle struct + func NewRectangle(sx, sy int) *Rectangle + func (r *Rectangle) Bounds() image.Rectangle + func (r *Rectangle) Draw(screen *ebiten.Image) + func (r *Rectangle) PreferredSize() (int, int) + func (r *Rectangle) SetColor(c color.Color) + func (r *Rectangle) SetPosition(x, y int) + func (r *Rectangle) SetSize(sx, sy int) + func (r *Rectangle) SetVisible(visible bool) + func (r *Rectangle) Update() error + type Selected int + const LeftSelect + const RightSelect + const UnSelected + type Toolbar struct + func NewToolbar(x, y int) *Toolbar + func (t *Toolbar) Append(b *Button) + func (t *Toolbar) Bounds() image.Rectangle + func (t *Toolbar) Draw(screen *ebiten.Image) + func (t *Toolbar) PreferredSize() (sx, sy int) + func (t *Toolbar) SetPosition(x, y int) + func (t *Toolbar) SetSize(sx, sy int) + func (t *Toolbar) SetVisible(visible bool) + func (t *Toolbar) Update() error