Documentation ¶
Index ¶
- Constants
- func CurseGraphicStart(fn mainThread, screenWidth, screenHeight int, fullscreen bool)
- func SwapBuffers()
- type Canvas
- func (c *Canvas) ClearLines()
- func (c *Canvas) DrawCanvas(x int, y int, can Canvas)
- func (c *Canvas) DrawLine(x1, y1, x2, y2 int)
- func (c *Canvas) FillRect(x int, y int, width int, height int)
- func (c *Canvas) FillText(text string, x, y int)
- func (c Canvas) GetCharCode() rune
- func (c Canvas) GetRune(x, y int) rune
- func (c Canvas) Height() int
- func (c Canvas) Move(y, x int)
- func (c *Canvas) Restore()
- func (c *Canvas) Save()
- func (c *Canvas) SetColor(background, text color.RGBA)
- func (c *Canvas) SetFillChar(ch rune)
- func (c *Canvas) SetTranslate(x int, y int)
- func (c *Canvas) Translate(x int, y int)
- func (c Canvas) Width() int
Constants ¶
View Source
const ( COLOR_BLACK = iota COLOR_RED COLOR_GREEN COLOR_YELLOW COLOR_BLUE COLOR_MAGENTA COLOR_CYAN COLOR_WHITE )
View Source
const ( TEXT_WIDTH = 8 TEXT_HEIGHT = 16 )
Variables ¶
This section is empty.
Functions ¶
func CurseGraphicStart ¶
func SwapBuffers ¶
func SwapBuffers()
Types ¶
type Canvas ¶
type Canvas struct {
// contains filtered or unexported fields
}
func NewFullscreenCanvas ¶
func NewFullscreenCanvas() *Canvas
func NewVirtualCanvas ¶
func (Canvas) GetCharCode ¶
func (*Canvas) SetFillChar ¶
func (*Canvas) SetTranslate ¶
Click to show internal directories.
Click to hide internal directories.