Blame examples/tictactoe/tictactoe.h

Packit 98cdb6
/* GTK - The GIMP Toolkit
Packit 98cdb6
 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
Packit 98cdb6
 *
Packit 98cdb6
 * This library is free software; you can redistribute it and/or
Packit 98cdb6
 * modify it under the terms of the GNU Library General Public
Packit 98cdb6
 * License as published by the Free Software Foundation; either
Packit 98cdb6
 * version 2 of the License, or (at your option) any later version.
Packit 98cdb6
 *
Packit 98cdb6
 * This library is distributed in the hope that it will be useful,
Packit 98cdb6
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 98cdb6
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 98cdb6
 * Library General Public License for more details.
Packit 98cdb6
 *
Packit 98cdb6
 * You should have received a copy of the GNU Library General Public
Packit 98cdb6
 * License along with this library; if not, write to the
Packit 98cdb6
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Packit 98cdb6
 * Boston, MA 02111-1307, USA.
Packit 98cdb6
 */
Packit 98cdb6
#ifndef __TICTACTOE_H__
Packit 98cdb6
#define __TICTACTOE_H__
Packit 98cdb6
Packit 98cdb6
Packit 98cdb6
#include <glib.h>
Packit 98cdb6
#include <glib-object.h>
Packit 98cdb6
#include <gtk/gtktable.h>
Packit 98cdb6
Packit 98cdb6
Packit 98cdb6
G_BEGIN_DECLS
Packit 98cdb6
Packit 98cdb6
#define TICTACTOE_TYPE            (tictactoe_get_type ())
Packit 98cdb6
#define TICTACTOE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), TICTACTOE_TYPE, Tictactoe))
Packit 98cdb6
#define TICTACTOE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), TICTACTOE_TYPE, TictactoeClass))
Packit 98cdb6
#define IS_TICTACTOE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TICTACTOE_TYPE))
Packit 98cdb6
#define IS_TICTACTOE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TICTACTOE_TYPE))
Packit 98cdb6
Packit 98cdb6
Packit 98cdb6
typedef struct _Tictactoe       Tictactoe;
Packit 98cdb6
typedef struct _TictactoeClass  TictactoeClass;
Packit 98cdb6
Packit 98cdb6
struct _Tictactoe
Packit 98cdb6
{
Packit 98cdb6
  GtkTable table;
Packit 98cdb6
  
Packit 98cdb6
  GtkWidget *buttons[3][3];
Packit 98cdb6
};
Packit 98cdb6
Packit 98cdb6
struct _TictactoeClass
Packit 98cdb6
{
Packit 98cdb6
  GtkTableClass parent_class;
Packit 98cdb6
Packit 98cdb6
  void (* tictactoe) (Tictactoe *ttt);
Packit 98cdb6
};
Packit 98cdb6
Packit 98cdb6
GType          tictactoe_get_type        (void);
Packit 98cdb6
GtkWidget*     tictactoe_new             (void);
Packit 98cdb6
void	       tictactoe_clear           (Tictactoe *ttt);
Packit 98cdb6
Packit 98cdb6
G_END_DECLS
Packit 98cdb6
Packit 98cdb6
#endif /* __TICTACTOE_H__ */
Packit 98cdb6