MutableGrid
The mutable version of the library's Grid structure.
MutableGrid allows its Grid.States to be changed out, though the Grid's basic shape is actually immutable. That shape is defined by its row and column counts, the lines which are inset, and whether edge lines are enabled.
Constructors
Properties
The number of linear columns in the Grid.
Whether edge lines are enabled.
Whether the even rows and columns are inset, or the odd ones.
Functions
Updates the Grid.State at the given Grid.Address.
Returns the appropriate Grid.Address if row and column are valid coordinates.
Iterator function for Grid.
The Address-indexed get operator for Grid.
The Int-indexed get operator for Grid.
Returns whether the given line – row or column – is inset, per the insetEvenLines property.
The Address-indexed set operator for MutableGrid.
The Int-indexed set operator for MutableGrid.
Toggles the Grid.State.isSelected value at the given Grid.Address.