2 /* GTK - The GIMP Toolkit
3 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
20 #ifndef __TICTACTOE_H__
21 #define __TICTACTOE_H__
25 #include <gtk/gtkvbox.h>
30 #endif /* __cplusplus */
32 #define TICTACTOE(obj) GTK_CHECK_CAST (obj, tictactoe_get_type (), Tictactoe)
33 #define TICTACTOE_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, tictactoe_get_type (), TictactoeClass)
34 #define IS_TICTACTOE(obj) GTK_CHECK_TYPE (obj, tictactoe_get_type ())
37 typedef struct _Tictactoe Tictactoe;
38 typedef struct _TictactoeClass TictactoeClass;
44 GtkWidget *buttons[3][3];
47 struct _TictactoeClass
49 GtkVBoxClass parent_class;
51 void (* tictactoe) (Tictactoe *ttt);
54 GtkType tictactoe_get_type (void);
55 GtkWidget* tictactoe_new (void);
56 void tictactoe_clear (Tictactoe *ttt);
60 #endif /* __cplusplus */
62 #endif /* __TICTACTOE_H__ */