Versions in this module Expand all Collapse all v0 v0.2.0 Apr 3, 2022 Changes in this version type ComponentAttributes + ID func() string type ComponentBase + func (cb *ComponentBase) ID() string type Console + func (c *Console) HasComponent(component Component) bool + func (c *Console) RemoveComponent(component Component) + func (c *Console) TransformAll(transformer ...t.Transformer) error + func (c *Console) TransformArea(x, y, width, height int, transformer ...t.Transformer) error v0.1.0 Apr 1, 2022 Changes in this version + type ColorSection struct + Index int + Transformer []t.Transformer + type ColorSections []*ColorSection + func ParseColoredText(text string) (string, ColorSections) + func (cs ColorSections) GetCurrent(index int) *ColorSection + func (cs ColorSections) GetCurrentTransformer(index int) []t.Transformer + type Component interface + type ComponentAttributes interface + IsFocused func() bool + Position func() (int, int) + SetFocus func(value bool) + ShouldClose func() bool + ShouldDraw func() bool + Size func() (int, int) + type ComponentBase struct + Height int + Width int + X int + Y int + func NewComponentBase(x, y, width, height int) *ComponentBase + func (cb *ComponentBase) Close() + func (cb *ComponentBase) IsFocused() bool + func (cb *ComponentBase) Position() (int, int) + func (cb *ComponentBase) SetFocus(value bool) + func (cb *ComponentBase) ShouldClose() bool + func (cb *ComponentBase) ShouldDraw() bool + func (cb *ComponentBase) Show(value bool) + func (cb *ComponentBase) Size() (int, int) + type ComponentLogic interface + Draw func(con *Console, timeElapsed float64) + FocusOnClick func() bool + Update func(con *Console, timeElapsed float64) bool + type Console struct + Font *font.Font + Height int + ShowFPS bool + SubConsoles []*Console + Title string + Width int + func New(width, height int, font *font.Font, title string) (*Console, error) + func (c *Console) AddComponent(component Component) + func (c *Console) CalcTextHeight(width, height int, text string) int + func (c *Console) Clear(x, y, width, height int, transformer ...t.Transformer) error + func (c *Console) ClearAll(transformer ...t.Transformer) + func (c *Console) CreateSubConsole(x, y, width, height int) (*Console, error) + func (c *Console) Draw(screen *ebiten.Image) + func (c *Console) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int) + func (c *Console) MouseInArea(x, y, width, height int) bool + func (c *Console) MousePosition() (int, int) + func (c *Console) Print(x, y int, text string, transformer ...t.Transformer) + func (c *Console) PrintBounded(x, y, width, height int, text string, transformer ...t.Transformer) int + func (c *Console) PrintBoundedOffset(x, y, width, height, sy int, text string, transformer ...t.Transformer) int + func (c *Console) RemoveSubConsole(con *Console) error + func (c *Console) SetPostRenderHook(hook func(screen *ebiten.Image, timeElapsed float64) error) error + func (c *Console) SetPreRenderHook(hook func(screen *ebiten.Image, timeElapsed float64) error) error + func (c *Console) SetPriority(priority int) error + func (c *Console) SetTickHook(hook func(timeElapsed float64) error) error + func (c *Console) Start(scale float64) error + func (c *Console) Transform(x, y int, transformer ...t.Transformer) error + func (c *Console) Update() error