Пример #1
0
func (w *window) SetOwnForegroundColor(color Color) {
	p := ptr(w)
	if p == nil {
		return
	}
	C.wxWindow_SetOwnForegroundColor(p, C.Color(color))
}
Пример #2
0
func (w *window) SetForegroundColor(color Color) bool {
	p := ptr(w)
	if p == nil {
		return false
	}
	return goBool(C.wxWindow_SetForegroundColor(p, C.Color(color)))
}
Пример #3
0
func (board Board) ColorMask(color Color) Mask {
	return Mask(C.ColorMask(&board[0], C.Color(color)))
}
Пример #4
0
func (board *Board) SetColor(row, col int, color Color) {
	board[col][row] = C.Color(color)
}
Пример #5
0
func (board *Board) FillEmptyExcluding(exclude Color) {
	C.FillEmptyExcluding(&board[0], C.Color(exclude))
}