gui

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FontMap

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

func NewFontMap

func NewFontMap(defaultFont *glfont.Font, defaultBoldFont *glfont.Font) *FontMap

func (*FontMap) GetBoldFont

func (fm *FontMap) GetBoldFont(r rune) *glfont.Font

func (*FontMap) GetFont

func (fm *FontMap) GetFont(r rune) *glfont.Font

func (*FontMap) UpdateResolution

func (fm *FontMap) UpdateResolution(w int, h int)

type GUI

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

func New

func New(config *config.Config, terminal *terminal.Terminal, logger *zap.SugaredLogger) (*GUI, error)

func (*GUI) Close

func (gui *GUI) Close()

func (*GUI) Render

func (gui *GUI) Render() error

type OpenGLRenderer

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

func NewOpenGLRenderer

func NewOpenGLRenderer(config *config.Config, fontMap *FontMap, areaX int, areaY int, areaWidth int, areaHeight int, colourAttr uint32, program uint32) *OpenGLRenderer

func (*OpenGLRenderer) CellHeight

func (r *OpenGLRenderer) CellHeight() float32

func (*OpenGLRenderer) CellWidth

func (r *OpenGLRenderer) CellWidth() float32

func (*OpenGLRenderer) Clean

func (r *OpenGLRenderer) Clean()

func (*OpenGLRenderer) DrawCellBg

func (r *OpenGLRenderer) DrawCellBg(cell buffer.Cell, col uint, row uint, cursor bool, colour *config.Colour, force bool)

func (*OpenGLRenderer) DrawCellImage

func (r *OpenGLRenderer) DrawCellImage(cell buffer.Cell, col uint, row uint)

func (*OpenGLRenderer) DrawCellText

func (r *OpenGLRenderer) DrawCellText(cell buffer.Cell, col uint, row uint, alpha float32, colour *[3]float32)

func (*OpenGLRenderer) DrawCursor

func (r *OpenGLRenderer) DrawCursor(col uint, row uint, colour config.Colour)

func (*OpenGLRenderer) GetTermSize

func (r *OpenGLRenderer) GetTermSize() (uint, uint)

func (*OpenGLRenderer) SetArea

func (r *OpenGLRenderer) SetArea(areaX int, areaY int, areaWidth int, areaHeight int)

Jump to

Keyboard shortcuts

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