This is the doxygen documentation for gtkboard.

.
Main Page   Data Structures   File List   Data Fields   Globals  

board.h

Go to the documentation of this file.
00001 /*  This file is a part of gtkboard, a board games system.
00002     Copyright (C) 2003, Arvind Narayanan <arvindn@users.sourceforge.net>
00003 
00004     This program is free software; you can redistribute it and/or modify
00005     it under the terms of the GNU General Public License as published by
00006     the Free Software Foundation; either version 2 of the License, or
00007     (at your option) any later version.
00008 
00009     This program is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012     GNU General Public License for more details.
00013 
00014     You should have received a copy of the GNU General Public License
00015     along with this program; if not, write to the Free Software
00016     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA
00017 
00018 */
00019 #ifndef _BOARD_H_
00020 #define _BOARD_H_
00021 
00022 #include <glib.h>
00023 #include <gdk/gdk.h>
00024 #include <gtk/gtk.h>
00025 
00026 #include "game.h"
00027 
00028 
00029 extern gboolean board_suspended ;
00030 extern GtkWidget *board_area;
00031 extern GtkWidget *board_rowbox, *board_colbox;
00032 extern gboolean state_board_flipped;
00033 
00034 
00035 void board_set_game_params ();
00036 void board_set_cell (int, int, byte);
00037 void board_refresh_cell (int, int);
00038 void board_show();
00039 void board_hide();
00040 void board_init ();
00041 void board_free ();
00042 gboolean board_redraw (GtkWidget *, GdkEventExpose *);
00043 void board_redraw_all ();
00044 gint board_signal_handler (GtkWidget *, GdkEventButton *, gpointer);
00045 void board_apply_refresh (byte *, int *);
00046 
00047 #endif