Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BLACK = []float64{0, 0, 0}
View Source
var RED = []float64{0.8, 0, 0}
Functions ¶
This section is empty.
Types ¶
type MainWindow ¶
type MainWindow struct { *gtk.Window // Areas MainArea *gtk.Box ScoreArea *gtk.Box // Labels Scores *gtk.Label BlacksScore *gtk.Label RedsScore *gtk.Label // Board drawing details BoardEventBox *gtk.EventBox BoardView *gtk.DrawingArea BoardHeight int BoardWidth int // Internal board structure Board board.Board // contains filtered or unexported fields }
func NewMainWindow ¶
func NewMainWindow() *MainWindow
func (*MainWindow) DrawPiece ¶
func (self *MainWindow) DrawPiece(cr *cairo.Context, x, y float64, color []float64)
draw the piece on the canvas
func (*MainWindow) DrawSelector ¶
func (self *MainWindow) DrawSelector(cr *cairo.Context, x, y float64)
draw the piece on the canvas
func (*MainWindow) InitializeWidgets ¶
func (self *MainWindow) InitializeWidgets()
Initialize the game widgets
Click to show internal directories.
Click to hide internal directories.