Documentation
¶
Index ¶
- Variables
- type Cell
- type CellIndex
- type Grid
- func (g Grid) Bounds() Rectangle
- func (g Grid) Cell(row, col int) (Rectangle, error)
- func (g Grid) CellRenderFunc(row, col int) (RendererFunc, error)
- func (g Grid) ColAsSubgrid(col int) (Grid, error)
- func (g Grid) ForEachCellRenderFunc(f func(pos CellIndex, renderFunc RendererFunc) bool)
- func (g Grid) IsInBounds(row, col int) bool
- func (g Grid) JointCellRenderFunc(row1, col1, row2, col2 int) (RendererFunc, error)
- func (g Grid) RowAsSubgrid(row int) (Grid, error)
- func (g Grid) Subgrid(i1, j1, i2, j2 int) (Grid, error)
- type GridType
- type Point
- type Rectangle
- type Renderer
- type RendererFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrOutOfBounds = errors.New("out of bounds")
)
Functions ¶
This section is empty.
Types ¶
type Grid ¶
type Grid struct {
GridType
// contains filtered or unexported fields
}
func (Grid) CellRenderFunc ¶
func (g Grid) CellRenderFunc(row, col int) (RendererFunc, error)
func (Grid) ForEachCellRenderFunc ¶
func (g Grid) ForEachCellRenderFunc(f func(pos CellIndex, renderFunc RendererFunc) bool)
func (Grid) IsInBounds ¶
func (Grid) JointCellRenderFunc ¶
func (g Grid) JointCellRenderFunc(row1, col1, row2, col2 int) (RendererFunc, error)
Click to show internal directories.
Click to hide internal directories.