StateMapBuilderScope

sealed interface StateMapBuilderScope

Scope for assembling State maps. For use with buildStateMap.

The command functions in this scope are cooperative; i.e., you can both select and hide the same Grid.Address. These commands operate on a shared Grid.State for each Address that implicitly starts at Grid.State.Default.

Functions

Link copied to clipboard
open fun at(row: Int, column: Int): Grid.Address

Creates a Grid.Address from row and column.

Link copied to clipboard
abstract fun hide(vararg addresses: Grid.Address)

Sets the Grid.State at each of the addresses to a copy of itself with isVisible set to false.

Link copied to clipboard
abstract fun select(vararg addresses: Grid.Address)

Sets the Grid.State at each of the addresses to a copy of itself with isSelected set to true.