render

package
v0.0.0-...-efee7b9 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultRenderer

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

func (*DefaultRenderer) AddDecoration

func (r *DefaultRenderer) AddDecoration(col, row uint16, content string, frames int)

func (*DefaultRenderer) Deinit

func (r *DefaultRenderer) Deinit() error

func (*DefaultRenderer) Fill

func (r *DefaultRenderer) Fill(row, column uint16, message string)

func (*DefaultRenderer) FillColor

func (r *DefaultRenderer) FillColor(row, column uint16, c color.RGBA, message string)

func (*DefaultRenderer) Init

func (r *DefaultRenderer) Init() error

func (*DefaultRenderer) RenderLoop

func (r *DefaultRenderer) RenderLoop(
	delay time.Duration,
	render func(startTime time.Time, duration time.Duration) bool,
	endRender func(renderDuration time.Duration),
)

type Renderer

type Renderer interface {
	Init() error
	Deinit() error
	AddDecoration(col, row uint16, content string, frames int)
	RenderLoop(
		delay time.Duration,
		render func(startTime time.Time, duration time.Duration) bool,

		endRender func(renderDuration time.Duration),
	)
	Fill(row, column uint16, message string)
	FillColor(row, column uint16, color color.RGBA, message string)
}

Jump to

Keyboard shortcuts

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