Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
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