• 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/gtk/go-color-group.h>
00034 #include <gtk/gtkwidget.h>
00035 
00036 G_BEGIN_DECLS
00037 
00038 typedef struct _GOColorPalette  GOColorPalette;
00039 
00040 #define GO_COLOR_PALETTE_TYPE     (go_color_palette_get_type ())
00041 #define GO_COLOR_PALETTE(obj)     (G_TYPE_CHECK_INSTANCE_CAST((obj), GO_COLOR_PALETTE_TYPE, GOColorPalette))
00042 #define GO_COLOR_PALETTE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST(k), GO_COLOR_PALETTE_TYPE)
00043 #define IS_GO_COLOR_PALETTE(obj)  (G_TYPE_CHECK_INSTANCE_TYPE((obj), GO_COLOR_PALETTE_TYPE))
00044 
00045 GType      go_color_palette_get_type (void);
00046 
00047 GtkWidget *go_color_palette_new       (char const *no_color_label,
00048                        GOColor default_color,
00049                        GOColorGroup *color_group);
00050 GtkWidget *go_color_palette_make_menu (char const *no_color_label,
00051                        GOColor default_color,
00052                        GOColorGroup *color_group,
00053                        char const *custom_dialog_title,
00054                        GOColor current_color);
00055 
00056 void    go_color_palette_set_title      (GOColorPalette *p, char const *title);
00057 void    go_color_palette_set_group      (GOColorPalette *p, GOColorGroup *cg);
00058 void    go_color_palette_set_current_color  (GOColorPalette *p, GOColor color);
00059 void    go_color_palette_set_color_to_default   (GOColorPalette *p);
00060 GOColor go_color_palette_get_current_color  (GOColorPalette *p,
00061                          gboolean *is_default, gboolean *is_custom);
00062 void    go_color_palette_set_allow_alpha    (GOColorPalette *p, gboolean allow_alpha);
00063 
00064 G_END_DECLS
00065 
00066 #endif /* __GO_COLOR_PALETTE_H__ */

Generated on Wed Mar 5 2014 for AbiWord by  doxygen 1.7.1