cursesgraphic

package module
v0.0.0-...-bbca8d7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2019 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

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 CurseGraphicStart(fn mainThread, screenWidth, screenHeight int, fullscreen bool)

func SwapBuffers

func SwapBuffers()

Types

type Canvas

type Canvas struct {
	// contains filtered or unexported fields
}

func NewFullscreenCanvas

func NewFullscreenCanvas() *Canvas

func NewVirtualCanvas

func NewVirtualCanvas(width int, height int) *Canvas

func (*Canvas) ClearLines

func (c *Canvas) ClearLines()

clears previously drawn lines from view

func (*Canvas) DrawCanvas

func (c *Canvas) DrawCanvas(x int, y int, can Canvas)

func (*Canvas) DrawLine

func (c *Canvas) DrawLine(x1, y1, x2, y2 int)

draw a line from between two characters

func (*Canvas) FillRect

func (c *Canvas) FillRect(x int, y int, width int, height int)

func (*Canvas) FillText

func (c *Canvas) FillText(text string, x, y int)

func (Canvas) GetCharCode

func (c Canvas) GetCharCode() rune

func (Canvas) GetRune

func (c Canvas) GetRune(x, y int) rune

func (Canvas) Height

func (c Canvas) Height() int

func (Canvas) Move

func (c Canvas) Move(y, x int)

func (*Canvas) Restore

func (c *Canvas) Restore()

func (*Canvas) Save

func (c *Canvas) Save()

func (*Canvas) SetColor

func (c *Canvas) SetColor(background, text color.RGBA)

func (*Canvas) SetFillChar

func (c *Canvas) SetFillChar(ch rune)

func (*Canvas) SetTranslate

func (c *Canvas) SetTranslate(x int, y int)

func (*Canvas) Translate

func (c *Canvas) Translate(x int, y int)

func (Canvas) Width

func (c Canvas) Width() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL