# gtkperiodic.h

Go to the documentation of this file.

    00001 // -*- C -*-
    00002
    00003 /*
    00004  * Gnome Chemisty Utils
    00005  * gtkperiodic.h
    00006  *
    00007  * Copyright (C) 2002-2006 Jean Bréfort <jean.brefort@normalesup.org>
    00008  *
    00009  * This program is free software; you can redistribute it and/or
    00010  * modify it under the terms of the GNU General Public License as
    00011  * published by the Free Software Foundation; either version 2 of the
    00012  * License, or (at your option) any later version.
    00013  *
    00014  * This program is distributed in the hope that it will be useful,
    00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    00017  * GNU General Public License for more details.
    00018  *
    00019  * You should have received a copy of the GNU General Public License
    00020  * along with this program; if not, write to the Free Software
    00021  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
    00022  * USA
    00023  */
    00024
    00025 #ifndef GTK_PERIODIC_H
    00026 #define GTK_PERIODIC_H
    00027
    00028 #include <gdk/gdk.h>
    00029 #include <gtk/gtkbin.h>
    00030 #include <gtk/gtkvbox.h>
    00031 #include <gtk/gtktogglebutton.h>
    00032
    00033 G_BEGIN_DECLS
    00034
    00045 enum GtkPeriodicColorSchemes
    00046 {
    00047   GTK_PERIODIC_COLOR_NONE,
    00048   GTK_PERIODIC_COLOR_DEFAULT,
    00049   GTK_PERIODIC_COLOR_MAX,
    00050 };
    00051
    00053 #define GTK_TYPE_PERIODIC                 (gtk_periodic_get_type ())
    00054
    00059 #define GTK_PERIODIC(obj)                 (GTK_CHECK_CAST ((obj), GTK_TYPE_PERIODIC, GtkPeriodic))
    00060
    00064 #define GTK_PERIODIC_CLASS(klass)         (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_PERIODIC, GtkPeriodicClass))
    00065
    00068 #define GTK_IS_PERIODIC(obj)      (GTK_CHECK_TYPE ((obj), GTK_TYPE_PERIODIC))
    00069
    00072 #define GTK_IS_PERIODIC_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PERIODIC))
    00073
    00077 #define GTK_PERIODIC_GET_CLASS(obj)  (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_PERIODIC, GtkPeriodicClass))
    00078
    00080 typedef struct _GtkPeriodic       GtkPeriodic;
    00082 typedef struct _GtkPeriodicClass  GtkPeriodicClass;
    00083
    00126 typedef void (*GtkPeriodicColorFunc) (int, GdkColor*, gpointer);
    00127
    00128 GType               gtk_periodic_get_type          (void) G_GNUC_CONST;
    00129 GtkWidget*            gtk_periodic_new               (void);
    00130
    00139 guint                           gtk_periodic_get_element                (GtkPeriodic* periodic);
    00148 void                            gtk_periodic_set_element                (GtkPeriodic* periodic, guint element);
    00149
    00160 int                                     gtk_periodic_add_color_scheme   (GtkPeriodic *periodic,
    00161                                                                                         GtkPeriodicColorFunc func,
    00162                                                                                         GtkWidget *extra_widget,
    00163                                                                                 gpointer user_data);
    00164
    00171 void                            gtk_periodic_set_colors(GtkPeriodic *periodic);
    00172 G_END_DECLS
    00173
    00174 #endif //GTK_PERIODIC_H