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

go-combo-color.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-combo-color.h - A color selector combo box
00004  * Copyright 2000, 2001, Ximian, Inc.
00005  *
00006  * Authors:
00007  *   Miguel de Icaza (miguel@kernel.org)
00008  *   Dom Lachowicz (dominicl@seas.upenn.edu)
00009  *
00010  * Reworked and split up into a separate ColorPalette object:
00011  *   Michael Levy (mlevy@genoscope.cns.fr)
00012  *
00013  * And later revised and polished by:
00014  *   Almer S. Tigelaar (almer@gnome.org)
00015  *
00016  * This library is free software; you can redistribute it and/or
00017  * modify it under the terms of the GNU Library General Public
00018  * License, version 2, as published by the Free Software Foundation.
00019  *
00020  * This library is distributed in the hope that it will be useful, but
00021  * WITHOUT ANY WARRANTY; without even the implied warranty of
00022  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00023  * Library General Public License for more details.
00024  *
00025  * You should have received a copy of the GNU Library General Public
00026  * License along with this library; if not, write to the Free Software
00027  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
00028  * USA.
00029  */
00030 #ifndef _GO_COMBO_COLOR_H_
00031 #define _GO_COMBO_COLOR_H_
00032 
00033 #include <goffice/goffice.h>
00034 
00035 G_BEGIN_DECLS
00036 
00037 #define GO_TYPE_COMBO_COLOR (go_combo_color_get_type ())
00038 #define GO_COMBO_COLOR(o)   (G_TYPE_CHECK_INSTANCE_CAST((o), GO_TYPE_COMBO_COLOR, GOComboColor))
00039 #define GO_IS_COMBO_COLOR(o)    (G_TYPE_CHECK_INSTANCE_TYPE((o), GO_TYPE_COMBO_COLOR))
00040 #define GO_COMBO_COLOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST(k), GO_TYPE_COMBO_COLOR)
00041 
00042 typedef struct _GOComboColor GOComboColor;
00043 
00044 GType      go_combo_color_get_type   (void);
00045 GtkWidget *go_combo_color_new        (GdkPixbuf   *icon,
00046                       char const *no_color_label,
00047                       GOColor default_color,
00048                       GOColorGroup  *color_group);
00049 GOColor go_combo_color_get_color (GOComboColor  *cc, gboolean *is_default);
00050 void    go_combo_color_set_color (GOComboColor  *cc, GOColor   color);
00051 void    go_combo_color_set_color_to_default (GOComboColor *cc);
00052 void    go_combo_color_set_color_gdk (GOComboColor *cc, GdkRGBA *color);
00053 
00054 void go_combo_color_set_allow_alpha    (GOComboColor *cc, gboolean allow_alpha);
00055 void go_combo_color_set_instant_apply  (GOComboColor *cc, gboolean active);
00056 
00057 G_END_DECLS
00058 
00059 #endif /* _GO_COMBO_COLOR_H_ */

Generated on Wed Mar 5 2014 for AbiWord by  doxygen 1.7.1