Documentation ¶
Index ¶
- func NewBorder(content tile.Renderable, above *rune, below *rune, left *rune, right *rune) tile.Renderable
- func NewHorizontalLine(char rune, len int) tile.Renderable
- func NewPanel(content ...PositionedRenderable) tile.Renderable
- func NewVerticalLine(char rune, len int) tile.Renderable
- type BorderBuilder
- type Canvas
- type IntersectionRuleBuilder
- type PositionedRenderable
- type Span
- type TableBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBorder ¶
func NewBorder(content tile.Renderable, above *rune, below *rune, left *rune, right *rune) tile.Renderable
func NewHorizontalLine ¶
func NewHorizontalLine(char rune, len int) tile.Renderable
func NewVerticalLine ¶
func NewVerticalLine(char rune, len int) tile.Renderable
Types ¶
type BorderBuilder ¶
type BorderBuilder interface { WithContent(content tile.Renderable) BorderBuilder WithAbove(character rune) BorderBuilder WithBelow(character rune) BorderBuilder WithHorizontal(character rune) BorderBuilder WithLeft(character rune) BorderBuilder WithRight(character rune) BorderBuilder WithVertical(character rune) BorderBuilder Build() tile.Renderable }
func NewBorderBuilder ¶
func NewBorderBuilder() BorderBuilder
type Canvas ¶
type Canvas interface { core.StringerMl // Modify WriteAt(position xy.Position, content any) Canvas OverwriteAt(position xy.Position, content any) Canvas // Cells GetCell(position xy.Position) (cell cells.Cell, ok bool) SetCell(position xy.Position, cell cells.Cell) // Renderable Render(rules ...tile.RenderRule) tile.Tile }
Mutable display type
type IntersectionRuleBuilder ¶
type IntersectionRuleBuilder interface { AddIntersection(above, below, left, right *rune, intersection rune) IntersectionRuleBuilder Build() tile.RenderRule }
func NewIntersectionRuleBuilder ¶
func NewIntersectionRuleBuilder() IntersectionRuleBuilder
type PositionedRenderable ¶
type PositionedRenderable struct { Position xy.Position tile.Renderable }
type TableBuilder ¶
type TableBuilder interface { // Config WithHorizontalSeparator(separator rune) TableBuilder WithVerticalSeparator(separator rune) TableBuilder SetCell(x, y int, content any) TableBuilder SetCellByPosition(pos xy.Position, content any) TableBuilder AppendRow(content ...any) TableBuilder // tile.Renderable Build() tile.Renderable }
func NewTableBuilder ¶
func NewTableBuilder() TableBuilder
Source Files ¶
Click to show internal directories.
Click to hide internal directories.