Documentation ¶
Overview ¶
Package gui defines the interface used by artists in the village.
Index ¶
Constants ¶
View Source
const ( ScreenWidth int = 114 ScreenHeight int = 64 ImageHeight int = 64 ImageWidth int = 64 ImageX int = 25 ButtonHeight int = 4 ButtonBuffer int = 1 ExitX int = ImageX + ImageHeight + ButtonBuffer ExitY int = ScreenHeight - ButtonHeight )
View Source
const ( MODE_DRAWING = 0 MODE_DONE = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppState ¶
Struct AppState represents the drawing application state.
func CopyAppState ¶
CopyAppState makes a deep copy of an AppState.
func (*AppState) ApplyAction ¶
ApplyAction modifies an AppState by an action.
func (*AppState) DrawScreen ¶
DrawScreen draws the user interface of an app.
Click to show internal directories.
Click to hide internal directories.