#include <goffice/goffice-config.h>
#include <goffice/goffice.h>
#include <gsf/gsf-impl-utils.h>
#include <string.h>
Classes | |
struct | GOColorGroupClass |
Enumerations | |
enum | { HISTORY_CHANGED, LAST_SIGNAL } |
Functions | |
static void | go_color_group_finalize (GObject *obj) |
static void | go_color_group_class_init (GOColorGroupClass *klass) |
static void | go_color_group_init (GOColorGroup *cg) |
: target name | |
: identifying context if name is NULL or a name not currently in use by another group then a new group is created and returned. If name was NULL then the new group is given a unique name prefixed by "__cg_autogen_name__" (thereby insuring namespace separation). If name was already used by a group then the reference count is incremented and a pointer to the group is returned. Returns: A GOColorGroup | |
static guint | cg_hash (GOColorGroup const *key) |
static gint | cg_equal (GOColorGroup const *a, GOColorGroup const *b) |
GOColorGroup * | go_color_group_fetch (char const *name, gpointer context) |
void | go_color_group_add_color (GOColorGroup *cg, GOColor c) |
go_color_group_add_color : : GOColorGroup : the color | |
Variables | |
static GObjectClass * | go_color_group_parent_class |
static guint | go_color_group_signals [LAST_SIGNAL] = { 0 } |
static GHashTable * | go_color_groups = NULL |
static gint cg_equal | ( | GOColorGroup const * | a, | |
GOColorGroup const * | b | |||
) | [static] |
References GOColorGroup::context, and GOColorGroup::name.
Referenced by go_color_group_fetch().
static guint cg_hash | ( | GOColorGroup const * | key | ) | [static] |
References GOColorGroup::name.
Referenced by go_color_group_fetch().
void go_color_group_add_color | ( | GOColorGroup * | cg, | |
GOColor | c | |||
) |
go_color_group_add_color : : GOColorGroup : the color
Potentially slide the history to add the new colour. If it was already in the history reorder.
Referenced by get_index(), and set_color().
static void go_color_group_class_init | ( | GOColorGroupClass * | klass | ) | [static] |
References go_color_group_parent_class, go_color_group_signals, and GO_TYPE_COLOR_GROUP.
GOColorGroup* go_color_group_fetch | ( | char const * | name, | |
gpointer | context | |||
) |
References cg_equal(), cg_hash(), GOColorGroup::context, gchar, go_color_group_find(), go_color_group_get_type(), go_color_groups, and GOColorGroup::name.
Referenced by go_color_selector_new(), and EV_UnixToolbar::synthesize().
static void go_color_group_finalize | ( | GObject * | obj | ) | [static] |
References GO_COLOR_GROUP, go_color_group_parent_class, go_color_groups, and GOColorGroup::name.
static void go_color_group_init | ( | GOColorGroup * | cg | ) | [static] |
References GOColorGroup::context, GO_COLOR_BLACK, GOColorGroup::history, and GOColorGroup::name.
GObjectClass* go_color_group_parent_class [static] |
Referenced by go_color_group_class_init(), and go_color_group_finalize().
guint go_color_group_signals[LAST_SIGNAL] = { 0 } [static] |
Referenced by go_color_group_add_color(), and go_color_group_class_init().
GHashTable* go_color_groups = NULL [static] |
Referenced by go_color_group_fetch(), and go_color_group_finalize().