gcuperiodic.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef GCU_PERIODIC_H
00026 #define GCU_PERIODIC_H
00027
00028 #include <gdk/gdk.h>
00029 #include <gtk/gtk.h>
00030
00031 G_BEGIN_DECLS
00032
00043 enum GcuPeriodicColorSchemes
00044 {
00045 GCU_PERIODIC_COLOR_NONE,
00046 GCU_PERIODIC_COLOR_DEFAULT,
00047 GCU_PERIODIC_COLOR_MAX,
00048 };
00049
00051 #define GCU_TYPE_PERIODIC (gcu_periodic_get_type ())
00052
00057 #define GCU_PERIODIC(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCU_TYPE_PERIODIC, GcuPeriodic))
00058
00062 #define GCU_PERIODIC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCU_TYPE_PERIODIC, GcuPeriodicClass))
00063
00066 #define GCU_IS_PERIODIC(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCU_TYPE_PERIODIC))
00067
00070 #define GCU_IS_PERIODIC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCU_TYPE_PERIODIC))
00071
00075 #define GCU_PERIODIC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCU_TYPE_PERIODIC, GcuPeriodicClass))
00076
00078 typedef struct _GcuPeriodic GcuPeriodic;
00080 typedef struct _GcuPeriodicClass GcuPeriodicClass;
00081
00124 typedef void (*GcuPeriodicColorFunc) (int, GdkColor*, gpointer);
00125
00127 GType gcu_periodic_get_type (void) G_GNUC_CONST;
00129 GtkWidget* gcu_periodic_new (void);
00130
00139 guint gcu_periodic_get_element (GcuPeriodic* periodic);
00148 void gcu_periodic_set_element (GcuPeriodic* periodic, guint element);
00149
00160 int gcu_periodic_add_color_scheme (GcuPeriodic *periodic,
00161 GcuPeriodicColorFunc func,
00162 GtkWidget *extra_widget,
00163 gpointer user_data);
00164
00171 void gcu_periodic_set_colors(GcuPeriodic *periodic);
00172 G_END_DECLS
00173
00174 #endif //GCU_PERIODIC_H