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/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