Versions in this module Expand all Collapse all v0 v0.5.2 Mar 24, 2023 v0.5.1 Mar 23, 2023 v0.5.0 Mar 23, 2023 Changes in this version type Box + Style Style v0.4.2 Dec 15, 2022 v0.4.1 Nov 26, 2022 Changes in this version + const Change + const Click + const Draw + const Scroll + const Update type Box + Attrs map[string]string + Children []*Box + Component Component + Content string + Parent *Box + Tag string + func (n *Box) Rebuild() error + func (n *Box) String() string + func (n *Box) ToggleDebug() + type Editable struct + func (e *Editable) Cursor() int + type Event struct + Box *Box + Image *ebiten.Image + Op *ebiten.DrawImageOptions + ScrollX float64 + ScrollY float64 + Type EventType + Value string + X int + Y int + type EventType string + type Scrollable struct + type State int type Style + Float bool + HJustSelf Justification + ScaleX float64 + ScaleY float64 + Underline bool + VJustSelf Justification + ZIndex int v0.3.1 Apr 2, 2022 Changes in this version + const Around + const Between + func ParseButton(spec string) (*[4]*NineSlice, error) + func ParseScrollbar(spec string) (*[3][4]*NineSlice, error) type Box + func (n *Box) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error type Justification + func (j Justification) Valid() bool type NineSlice + func (n *NineSlice) Height() int + func (n *NineSlice) Width() int type Style + HGrow int + HJust Justification + Image *ebiten.Image + Input *[4]*NineSlice + OffsetX int + OffsetY int + VGrow int + VJust Justification v0.1.1 Feb 28, 2022 v0.1.0 Feb 28, 2022 Changes in this version + const Active + const Center + const Disabled + const End + const Evenly + const Hover + const Idle + const Start + const Stretch + var Scrollspeed = 0.1 + type Box interface + Bounds func() image.Rectangle + Draw func(img *ebiten.Image) + Update func(keys []ebiten.Key) ([]ebiten.Key, error) + func Build(c Component) (Box, error) + type Button struct + func NewButton(img *ebiten.Image, widths, heights [3]int, onClick func()) *Button + func (b *Button) Bounds() image.Rectangle + func (b *Button) Draw(screen *ebiten.Image) + func (b *Button) Update(keys []ebiten.Key) ([]ebiten.Key, error) + type ButtonState int + type Component interface + OnKeyDown func(key ebiten.Key) bool + UI func() string + type Justification int + func ParseJustification(s string) Justification + type NineSlice struct + func NewNineSlice(img *ebiten.Image, widths, heights [3]int, offsetX, offsetY int) *NineSlice + func (n *NineSlice) Draw(screen *ebiten.Image, x, y, width, height int) + type Scrollbar struct + func NewScrollbar(img *ebiten.Image, widths, heights [3]int) *Scrollbar + func (s *Scrollbar) Bounds() image.Rectangle + func (s *Scrollbar) Draw(screen *ebiten.Image) + func (s *Scrollbar) Position() float64 + func (s *Scrollbar) Update(keys []ebiten.Key) ([]ebiten.Key, error) + type Spacing struct + Bottom int + Left int + Right int + Top int + type Style struct + Attrs map[string]string + Background *ebiten.Image + Border *NineSlice + Button *Button + Color *color.RGBA + Display bool + Extends string + Font font.Face + FontName string + FontSize int + Hidden bool + Margin *Spacing + MaxHeight int + MaxWidth int + MinHeight int + MinWidth int + Padding *Spacing + Scrollbar *Scrollbar