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
00026
00027
00028
00029
00030 #ifndef _GO_COLOR_GROUP_H_
00031 #define _GO_COLOR_GROUP_H_
00032
00033 #include <glib-object.h>
00034 #include <goffice/utils/go-color.h>
00035
00036 G_BEGIN_DECLS
00037
00038 #define GO_COLOR_GROUP_HISTORY_SIZE 8
00039
00040 typedef struct {
00041 GObject parent;
00042
00043 char *name;
00044 gpointer context;
00045
00046 GOColor history[GO_COLOR_GROUP_HISTORY_SIZE];
00047 } GOColorGroup;
00048
00049 #define GO_COLOR_GROUP_TYPE (go_color_group_get_type ())
00050 #define GO_COLOR_GROUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GO_COLOR_GROUP_TYPE, GOColorGroup))
00051 #define IS_GO_COLOR_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GO_COLOR_GROUP_TYPE))
00052
00053 GType go_color_group_get_type (void);
00054 GOColorGroup *go_color_group_find (char const *name, gpointer context);
00055 GOColorGroup *go_color_group_fetch (char const *name, gpointer context);
00056 void go_color_group_add_color (GOColorGroup *cg, GOColor c);
00057
00058 G_END_DECLS
00059
00060 #endif