Classes | Defines | Functions

go-color-group.h File Reference

#include <glib-object.h>
#include <goffice/utils/go-color.h>

Go to the source code of this file.

Classes

struct  GOColorGroup

Defines

#define GO_COLOR_GROUP_HISTORY_SIZE   8
#define GO_COLOR_GROUP_TYPE   (go_color_group_get_type ())
#define GO_COLOR_GROUP(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GO_COLOR_GROUP_TYPE, GOColorGroup))
#define IS_GO_COLOR_GROUP(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GO_COLOR_GROUP_TYPE))

Functions

GType go_color_group_get_type (void)
GOColorGroupgo_color_group_find (char const *name, gpointer context)
GOColorGroupgo_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

Define Documentation

#define GO_COLOR_GROUP (   obj  )     (G_TYPE_CHECK_INSTANCE_CAST ((obj), GO_COLOR_GROUP_TYPE, GOColorGroup))
#define GO_COLOR_GROUP_HISTORY_SIZE   8
#define GO_COLOR_GROUP_TYPE   (go_color_group_get_type ())
#define IS_GO_COLOR_GROUP (   obj  )     (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GO_COLOR_GROUP_TYPE))

Function Documentation

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.

References GO_COLOR_GROUP_HISTORY_SIZE, go_color_group_signals, GO_IS_COLOR_GROUP, GOColorGroup::history, HISTORY_CHANGED, and IS_GO_COLOR_GROUP.

Referenced by get_index(), and set_color().

GOColorGroup* go_color_group_fetch ( char const *  name,
gpointer  context 
)
GOColorGroup* go_color_group_find ( char const *  name,
gpointer  context 
)
GType go_color_group_get_type ( void   )