raster

package
v0.0.0-...-c501a93 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderStringArray

func RenderStringArray(r *Raster[rune]) []string

Types

type BoundingBox

type BoundingBox struct {
	Top   int
	Bot   int
	Left  int
	Right int
}

type Raster

type Raster[T any] struct {
	Raster [][]T
	Row    int
	Col    int
}

func New

func New[T any]() *Raster[T]

func (*Raster[T]) CursorGoto

func (r *Raster[T]) CursorGoto(row, col int)

func (*Raster[T]) Put

func (r *Raster[T]) Put(rowIdx, colIdx int, runes []T)

func (*Raster[T]) Resize

func (r *Raster[T]) Resize(cols, rows int)

func (*Raster[T]) ScrollRegion

func (r *Raster[T]) ScrollRegion(boundingBox BoundingBox, rowMovement int)

Jump to

Keyboard shortcuts

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