block

package
v0.49.4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HexSpace = 1
)
View Source
const (
	TextSpace = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	W int
	H int
}

type Context

type Context struct {
	Heap *heap.Heap

	Line bool
	Wrap bool

	X int
	Y int
	W int
	H int
}

type HexBlock

type HexBlock struct {
	Block
	Lines []HexLine
}

func Hex

func Hex(ctx Context) (hb HexBlock)

func (HexBlock) String

func (hb HexBlock) String() string

type HexLine

type HexLine struct {
	Line
	Hex string
}

func (HexLine) String

func (hl HexLine) String() string

type Line

type Line struct {
	Nr  string
	Str string
}

type TextBlock

type TextBlock struct {
	Block
	Lines []TextLine
	SMap  smap.SMap
}

func Text

func Text(ctx Context) (tb TextBlock)

func (TextBlock) String

func (tb TextBlock) String() string

type TextLine

type TextLine struct {
	Line
}

func (TextLine) String

func (tl TextLine) String() string

Jump to

Keyboard shortcuts

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