Example #1
0
File: window.go Project: nzlov/wxgo
func (w *window) SetOwnForegroundColor(color Color) {
	p := ptr(w)
	if p == nil {
		return
	}
	C.wxWindow_SetOwnForegroundColor(p, C.Color(color))
}
Example #2
0
File: window.go Project: nzlov/wxgo
func (w *window) SetForegroundColor(color Color) bool {
	p := ptr(w)
	if p == nil {
		return false
	}
	return goBool(C.wxWindow_SetForegroundColor(p, C.Color(color)))
}
Example #3
0
func (board Board) ColorMask(color Color) Mask {
	return Mask(C.ColorMask(&board[0], C.Color(color)))
}
Example #4
0
func (board *Board) SetColor(row, col int, color Color) {
	board[col][row] = C.Color(color)
}
Example #5
0
func (board *Board) FillEmptyExcluding(exclude Color) {
	C.FillEmptyExcluding(&board[0], C.Color(exclude))
}