Documentation
¶
Index ¶
- type Graphics
- func (g *Graphics) BlankScreen()
- func (g *Graphics) DrawBackground(symbol string, fgColor tb.Attribute, ratio float64)
- func (g *Graphics) DrawBackgroundFgBg(symbol string, fgColor tb.Attribute, bgColor tb.Attribute, ratio float64)
- func (g *Graphics) DrawUnit(xU int, yU int, symbol string, color tb.Attribute)
- func (g *Graphics) DrawUnitFgBg(xU int, yU int, symbol string, fgColor tb.Attribute, bgColor tb.Attribute)
- func (g *Graphics) Flush()
- func (g *Graphics) GetCenter() (int, int)
- func (g *Graphics) GetUnits() (int, int)
- func (g *Graphics) Print(x, y int, msg string, color tb.Attribute)
- func (g *Graphics) PrintFgBg(x, y int, msg string, fgColor tb.Attribute, bgColor tb.Attribute)
- func (g *Graphics) ReadChar() (rune, error)
- func (g *Graphics) Readline(x, y int) string
- func (g *Graphics) Resize(ratio float64)
- func (g *Graphics) SetCursor(x, y int)
- type Menu
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Graphics ¶
type Graphics struct { Ratio float64 ScreenWidth int ScreenHeight int UnitX int UnitY int CenterX int CenterY int }
func NewGraphics ¶
func (*Graphics) BlankScreen ¶
func (g *Graphics) BlankScreen()
func (*Graphics) DrawBackground ¶
func (*Graphics) DrawBackgroundFgBg ¶
func (*Graphics) DrawUnitFgBg ¶
Click to show internal directories.
Click to hide internal directories.