Documentation
¶
Index ¶
- type ArrowCell
- type Cell
- type CellStack
- func (cs *CellStack) Is(key string, value string) bool
- func (cs *CellStack) Match(tags map[string]string) bool
- func (cs *CellStack) PlaceArrow(inverted bool) *TaggedCell
- func (cs *CellStack) PlaceChar(char rune) *TaggedCell
- func (cs *CellStack) PlaceEmpty() *TaggedCell
- func (cs *CellStack) Render(priorityTags map[string]string) rune
- func (cs *CellStack) Tag(key string) string
- func (cs *CellStack) Tags() map[string]string
- type CharCell
- type EmptyCell
- type LineStack
- type LineTracer
- type LinesCell
- type Matrix
- func (m *Matrix) Cell(v utils.Vector) *CellStack
- func (m *Matrix) Cells() [][]CellStack
- func (m *Matrix) ExpandRight(n int)
- func (m *Matrix) H() int
- func (m *Matrix) RayCastVertical(origin utils.Vector, query map[string]func(string) bool, length int) (bool, error)
- func (m *Matrix) Render() string
- func (m *Matrix) W() int
- type TaggedCell
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CellStack ¶
type CellStack []*TaggedCell
func (*CellStack) PlaceArrow ¶
func (cs *CellStack) PlaceArrow(inverted bool) *TaggedCell
func (*CellStack) PlaceChar ¶
func (cs *CellStack) PlaceChar(char rune) *TaggedCell
func (*CellStack) PlaceEmpty ¶
func (cs *CellStack) PlaceEmpty() *TaggedCell
type LineTracer ¶
type LineTracer struct {
// contains filtered or unexported fields
}
func NewLineTracer ¶
func NewLineTracer(start utils.Vector) *LineTracer
func (*LineTracer) Dump ¶
func (l *LineTracer) Dump(matrix *Matrix) error
func (*LineTracer) MoveHorizontal ¶
func (l *LineTracer) MoveHorizontal(reverse bool) utils.Vector
func (*LineTracer) MoveVertical ¶
func (l *LineTracer) MoveVertical(reverse bool) utils.Vector
func (*LineTracer) WithTags ¶
func (l *LineTracer) WithTags(tags map[string]string) *LineTracer
type Matrix ¶
type Matrix struct {
// contains filtered or unexported fields
}
func (*Matrix) ExpandRight ¶
func (*Matrix) RayCastVertical ¶
type TaggedCell ¶
type TaggedCell struct { Cell // contains filtered or unexported fields }
func NewTaggedCell ¶
func NewTaggedCell(cell Cell) *TaggedCell
func (*TaggedCell) Tag ¶
func (tc *TaggedCell) Tag(key string) string
func (*TaggedCell) WithTag ¶
func (tc *TaggedCell) WithTag(key string, value string) *TaggedCell
func (*TaggedCell) WithTags ¶
func (tc *TaggedCell) WithTags(tags map[string]string) *TaggedCell
Click to show internal directories.
Click to hide internal directories.