Listing: C:\GTK\GtkClock\gtkclock.h

/* Gtk Widget Factory generated widget
 * http://gwf.sourceforge.net
 * Copyright (c) 1999-2000 Jeroen Benckhuijsen
*/

/* This file is Copyrighted (C) 1999-2000 by Ishan Chattopadhyaya (ishanchattopadhyaya@hclinfinet.com)
 * Please read the license agreement below
*/

/*  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#ifndef __GTKCLOCK_H__
#define __GTKCLOCK_H__

#ifdef __cplusplus
  extern "C" {
#endif

#include <gtk/gtk.h>

#define GTK_CLOCK(obj)		GTK_CHECK_CAST(obj, gtk_clock_get_type (), GtkClock)
#define GTK_CLOCK_CLASS(klass)	GTK_CHECK_CLASS_CAST(klass, gtk_clock_get_type (), GtkClockClass)
#define GTK_IS_CLOCK(obj)	GTK_CHECK_TYPE(obj, gtk_clock_get_type ())

typedef struct _GtkClock	GtkClock;
typedef struct _GtkClockClass	GtkClockClass;

struct _GtkClock
{
  GtkWidget		parent;
  int hour;
  int min;
  int sec;
};

struct _GtkClockClass
{
  GtkWidgetClass		parent_class;
};

guint		gtk_clock_get_type	        (void);
GtkWidget*	gtk_clock_new		        (void);
gint        gtk_clock_construct         (gpointer data);

#ifdef __cplusplus
  }
#endif

#endif /* __GTKCLOCK_H__ */