Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SetCellType is the type of cell to place when the grid is clicked. SetCellType = game.CellTypeCross )
Functions ¶
Types ¶
type Board ¶
type Board struct {
// contains filtered or unexported fields
}
Board contains batches for drawing the grass and cells.
type Button ¶
type Button struct {
// contains filtered or unexported fields
}
Button can be clicked to perform an action.
func (*Button) SetPosition ¶
SetPosition sets the position of the button.
type Selector ¶
type Selector struct {
// contains filtered or unexported fields
}
Selector is used to show that something has been selected by drawing a rectangle behind it.
func NewSelector ¶
func NewSelector(position pixel.Vec, image *pixel.Sprite, action func(selector *Selector)) *Selector
NewSelector creates a new selector.
func (*Selector) SetPosition ¶ added in v1.1.0
SetPosition sets the position of the selector.
Click to show internal directories.
Click to hide internal directories.