• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

go-color-group.h

Go to the documentation of this file.
00001 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
00002 /*
00003  * go-color-group.h - Utility to keep a shered memory of custom colors
00004  * between arbitrary widgets.
00005  * Copyright 2000, Michael Levy
00006  * Copyright 2001, Almer S. Tigelaar
00007  *
00008  * Authors:
00009  *   Michael Levy (mlevy@genoscope.cns.fr)
00010  * Revised and polished by:
00011  *   Almer S. Tigelaar <almer@gnome.org>
00012  * Rewritten yet again by
00013  *   Jody Goldberg <jody@gnome.org>
00014  *
00015  * This library is free software; you can redistribute it and/or
00016  * modify it under the terms of the GNU Library General Public
00017  * License, version 2, as published by the Free Software Foundation.
00018  *
00019  * This library is distributed in the hope that it will be useful, but
00020  * WITHOUT ANY WARRANTY; without even the implied warranty of
00021  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00022  * Library General Public License for more details.
00023  *
00024  * You should have received a copy of the GNU Library General Public
00025  * License along with this library; if not, write to the Free Software
00026  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
00027  * USA.
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 /* _GO_COLOR_GROUP_H_ */

Generated on Wed Mar 5 2014 for AbiWord by  doxygen 1.7.1