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

go-color-palette.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-palette.h - A color selector palette
00004  * Copyright 2000-2004, Ximian, Inc.
00005  *
00006  * Authors:
00007  * This code was extracted from widget-color-combo.c
00008  *   written by Miguel de Icaza (miguel@kernel.org) and
00009  *   Dom Lachowicz (dominicl@seas.upenn.edu). The extracted
00010  *   code was re-packaged into a separate object by
00011  *   Michael Levy (mlevy@genoscope.cns.fr)
00012  *   And later revised and polished by
00013  *   Almer S. Tigelaar (almer@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_PALETTE_H_
00031 #define _GO_COLOR_PALETTE_H_
00032 
00033 #include <goffice/goffice.h>
00034 
00035 G_BEGIN_DECLS
00036 
00037 typedef struct _GOColorPalette  GOColorPalette;
00038 
00039 #define GO_TYPE_COLOR_PALETTE     (go_color_palette_get_type ())
00040 #define GO_COLOR_PALETTE(obj)     (G_TYPE_CHECK_INSTANCE_CAST((obj), GO_TYPE_COLOR_PALETTE, GOColorPalette))
00041 #define GO_COLOR_PALETTE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST(k), GO_TYPE_COLOR_PALETTE)
00042 #define GO_IS_COLOR_PALETTE(obj)  (G_TYPE_CHECK_INSTANCE_TYPE((obj), GO_TYPE_COLOR_PALETTE))
00043 
00044 GType      go_color_palette_get_type (void);
00045 
00046 GtkWidget *go_color_palette_new       (char const *no_color_label,
00047                        GOColor default_color,
00048                        GOColorGroup *cg);
00049 GtkWidget *go_color_palette_make_menu (char const *no_color_label,
00050                        GOColor default_color,
00051                        GOColorGroup *cg,
00052                        char const *custom_dialog_title,
00053                        GOColor current_color);
00054 
00055 void    go_color_palette_set_title      (GOColorPalette *p, char const *title);
00056 void    go_color_palette_set_group      (GOColorPalette *p, GOColorGroup *cg);
00057 void    go_color_palette_set_current_color  (GOColorPalette *p, GOColor color);
00058 void    go_color_palette_set_color_to_default   (GOColorPalette *p);
00059 GOColor go_color_palette_get_current_color  (GOColorPalette *p,
00060                          gboolean *is_default, gboolean *is_custom);
00061 void    go_color_palette_set_allow_alpha    (GOColorPalette *p, gboolean allow_alpha);
00062 
00063 G_END_DECLS
00064 
00065 #endif /* __GO_COLOR_PALETTE_H__ */

Generated on Wed Mar 5 2014 for AbiWord by  doxygen 1.7.1