Versions in this module Expand all Collapse all v1 v1.3.17 Nov 27, 2024 v1.3.16 Nov 27, 2024 v1.3.15 Nov 27, 2024 v1.3.14 Oct 25, 2024 v1.3.13 Oct 25, 2024 Changes in this version + var BoldFrameStyle = FrameStyle + var DoubleFrameStyle = FrameStyle + var NormalFrameStyle = FrameStyle + func NewPoint(x, y func() int) func() Point + func ShrinkAreaTransformer(dx, dy int) func(parent Area) Area + func WholeArea() func(parent Area) Area + type Area struct + X1 int + X2 int + Y1 int + Y2 int + func HLine(x1, x2, y func() int) Area + func NewArea(x1, y1, x2, y2 int) Area + func Rectangle(topLeft func() Point, rightBottom func() Point) Area + func VLine(y1, y2, x func() int) Area + func ZeroArea() Area + func (a Area) Add(x1, y1, x2, y2 int) Area + func (a Area) Bottom(y int) func() int + func (a Area) BottomRight() func() Point + func (a Area) Copy() Area + func (a Area) Height() int + func (a Area) Inside(x, y int) bool + func (a Area) Left(x int) func() int + func (a Area) OnBottom() func() int + func (a Area) OnLeft() func() int + func (a Area) OnRight() func() int + func (a Area) OnTop() func() int + func (a Area) Right(x int) func() int + func (a Area) Top(y int) func() int + func (a Area) TopLeft() func() Point + func (a Area) Valid() bool + func (a Area) Width() int + type AreaTransformer func(Area) Area + type ButtonStyle struct + FrameColor *Color + FrameStyle *FrameStyle + TextAttribute tb.Attribute + TextColor *Color + type Cards struct + func CreateCards(area AreaTransformer) *Cards + func (e *Cards) BringUp(id string) + func (e *Cards) Children() []Drawable + func (e *Cards) Disabled() + func (e *Cards) Draw(c *console.Console) + func (e *Cards) Enabled() + func (e *Cards) Insert(id string, c Drawable) + func (e *Cards) LostFocus() + func (e *Cards) OnEvent(event tb.Event) + func (e *Cards) ReceiveFocus() + func (e *Cards) Remove(id string) + func (e *Cards) SetHidden() + func (e *Cards) SetVisible() + type Color struct + BG tb.Attribute + FG tb.Attribute + func NewColor(fg tb.Attribute, bg tb.Attribute) Color + type Drawable interface + Add func(child Drawable) + Children func() []Drawable + Disabled func() + Draw func(c *console.Console) + Enabled func() + GetArea func() Area + HasFocus func() bool + IsEnabled func() bool + IsVisible func() bool + LostFocus func() + OnEvent func(event tb.Event) + OnResize func() + ReceiveFocus func() + SetHidden func() + SetParent func(Drawable) + SetVisible func() + type FrameStyle struct + Bottom []rune + Intersect []rune + Middle []rune + Top []rune + type Point struct + X int + Y int + type View struct + func (e *View) Add(child Drawable) + func (e *View) Children() []Drawable + func (e *View) Disabled() + func (e *View) Draw(_ *console.Console) + func (e *View) Enabled() + func (e *View) GetArea() Area + func (e *View) GetColor() Color + func (e *View) HasFocus() bool + func (e *View) InitView(transformer AreaTransformer) + func (e *View) IsEnabled() bool + func (e *View) IsVisible() bool + func (e *View) LostFocus() + func (e *View) OnEvent(_ tb.Event) + func (e *View) OnResize() + func (e *View) ReceiveFocus() + func (e *View) SetColor(color Color) + func (e *View) SetHidden() + func (e *View) SetParent(parent Drawable) + func (e *View) SetTransformer(transformer AreaTransformer) + func (e *View) SetVisible() + type Window struct + C *console.Console + func New(fg, bg tb.Attribute) *Window + func (e *Window) Close() + func (e *Window) DefaultButtonStyle(pressed bool) ButtonStyle + func (e *Window) DefaultColor() Color + func (e *Window) DrawAll() + func (e *Window) GetArea() Area + func (e *Window) Run(exitKey tb.Key) + func (e *Window) Size() (int, int) + func (e *Window) Update(list ...Drawable)