33 void ChessboardWidget::S_draw_turn_indicator_hook(
CwChessboard* chessboard, gboolean
white, gboolean on)
38 void ChessboardWidget::S_draw_border_hook(
CwChessboard* chessboard)
43 void ChessboardWidget::S_draw_hud_layer_hook(
CwChessboard* chessboard, cairo_t* cr, gint
sside, guint hud)
48 gboolean ChessboardWidget::S_draw_hud_square_hook(
CwChessboard* chessboard, cairo_t* cr, gint col, gint row, gint sside, guint hud)
53 void ChessboardWidget::S_draw_pawn_hook(
CwChessboard* chessboard, cairo_t* cr, gdouble x, gdouble y, gdouble sside, gboolean white)
58 void ChessboardWidget::S_draw_rook_hook(
CwChessboard* chessboard, cairo_t* cr, gdouble x, gdouble y, gdouble sside, gboolean white)
63 void ChessboardWidget::S_draw_knight_hook(
CwChessboard* chessboard, cairo_t* cr, gdouble x, gdouble y, gdouble sside, gboolean white)
68 void ChessboardWidget::S_draw_bishop_hook(
CwChessboard* chessboard, cairo_t* cr, gdouble x, gdouble y, gdouble sside, gboolean white)
73 void ChessboardWidget::S_draw_queen_hook(
CwChessboard* chessboard, cairo_t* cr, gdouble x, gdouble y, gdouble sside, gboolean white)
78 void ChessboardWidget::S_draw_king_hook(
CwChessboard* chessboard, cairo_t* cr, gdouble x, gdouble y, gdouble sside, gboolean white)
83 void ChessboardWidget::S_on_cursor_left_chessboard_hook(
CwChessboard* chessboard, gint prev_col, gint prev_row)
88 void ChessboardWidget::S_on_cursor_entered_square_hook(
CwChessboard* chessboard, gint prev_col, gint prev_row, gint col, gint row)
96 M_chessboard->gtkmm_widget =
static_cast<void*
>(
this);
101 CW_CHESSBOARD_GET_CLASS(M_chessboard)->draw_turn_indicator = S_draw_turn_indicator_hook;
102 CW_CHESSBOARD_GET_CLASS(M_chessboard)->cursor_left_chessboard = S_on_cursor_left_chessboard_hook;
103 CW_CHESSBOARD_GET_CLASS(M_chessboard)->cursor_entered_square = S_on_cursor_entered_square_hook;
104 CW_CHESSBOARD_GET_CLASS(M_chessboard)->draw_border = S_draw_border_hook;
105 CW_CHESSBOARD_GET_CLASS(M_chessboard)->draw_hud_layer = S_draw_hud_layer_hook;
106 CW_CHESSBOARD_GET_CLASS(M_chessboard)->draw_hud_square = S_draw_hud_square_hook;
107 CW_CHESSBOARD_GET_CLASS(M_chessboard)->draw_piece[(
::white_pawn >> 1) - 1] = S_draw_pawn_hook;
108 CW_CHESSBOARD_GET_CLASS(M_chessboard)->draw_piece[(
::white_rook >> 1) - 1] = S_draw_rook_hook;
109 CW_CHESSBOARD_GET_CLASS(M_chessboard)->draw_piece[(
::white_knight >> 1) - 1] = S_draw_knight_hook;
110 CW_CHESSBOARD_GET_CLASS(M_chessboard)->draw_piece[(
::white_bishop >> 1) - 1] = S_draw_bishop_hook;
111 CW_CHESSBOARD_GET_CLASS(M_chessboard)->draw_piece[(
::white_queen >> 1) - 1] = S_draw_queen_hook;
112 CW_CHESSBOARD_GET_CLASS(M_chessboard)->draw_piece[(
::white_king >> 1) - 1] = S_draw_king_hook;
CwChessboardCode const white_bishop
ColorData const white
A constant representing the color white.
CwChessboardCode const white_pawn
A GTK+ chessboard widget.
CwChessboardCode const white_queen
CwChessboardCode const white_rook
CwChessboardCode const white_knight
A namespace for all gtkmm related objects.
CwChessboardCode const white_king
This file contains the definitions of the CwChessboardCode constants.