1 /*  MaitreTarot.
2  *  (C) 2002 Philippe Brochard <hocwp@free.fr>
3  *
4  *  This program is free software; you can redistribute it and/or modify
5  *  it under the terms of the GNU General Public License as published by
6  *  the Free Software Foundation; either version 2 of the License, or
7  *  (at your option) any later version.
8  *
9  *  This program is distributed in the hope that it will be useful,
10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *  GNU General Public License for more details.
13  *
14  *  You should have received a copy of the GNU General Public License
15  *  along with this program; if not, write to the Free Software
16  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  */
18 
19 #ifndef MT_GTK_CLIENT_GUI_H
20 #define MT_GTK_CLIENT_GUI_H
21 
22 #include <gtk/gtk.h>
23 #include <mt_client.h>
24 #include "config_utils.h"
25 
26 #define X_HIDE (-1000)
27 #define Y_HIDE (-1000)
28 
29 #define GUI_CARD_IN_CHIEN    (1000)
30 #define LAYOUT_BG_COLOR      "ForestGreen"
31 
32 
33 typedef void (*gui_redraw_func_t) (GtkWidget * win, GdkEventConfigure * evt,
34 				   gpointer data);
35 
36 extern void gui_set_redraw_func (gui_redraw_func_t func, gpointer data);
37 extern void gui_do_redraw (void);
38 
39 extern gint gui_init (int argc, char **argv);
40 extern void gui_clear_layout (void);
41 extern void gui_layout_get_size (GdkEventConfigure * evt, gint * width,
42 				 gint * height);
43 
44 extern void gui_start_game (void);
45 
46 extern gint gui_load_images (void);
47 
48 extern void gui_init_card_sort (void);
49 extern void gui_sort_card (gint * card, gint nb_card);
50 
51 
52 extern gint gui_card_sort[NUMBER_OF_CARD + 1];
53 
54 
55 
56 /* GUI variable */
57 extern GtkWidget *gui_mainwin;
58 extern GtkWidget *gui_layout;
59 extern GtkWidget *gui_statusbar;
60 extern GtkWidget *gui_menubar;
61 extern GtkItemFactory *gui_item_factory;
62 extern GtkAccelGroup *gui_accel_group;
63 
64 extern GtkWidget *gui_card_img[NUMBER_OF_CARD + 1];
65 extern gint gui_card_width, gui_card_height;
66 
67 
68 #endif /* MT_GTK_CLIENT_GUI_H */
69