Update Spanish translation
[gnumeric.git] / src / style-color.h
blob2b77596eb75b7b8b65c9a5fd19799bcd33e80a52
1 #ifndef _GNM_STYLE_COLOR_H_
2 # define _GNM_STYLE_COLOR_H_
4 #include <gnumeric.h>
5 #include <libgnumeric.h>
6 #include <goffice/goffice.h>
7 #include <gdk/gdk.h>
9 G_BEGIN_DECLS
11 struct _GnmColor {
12 GOColor go_color;
13 int ref_count;
14 gboolean is_auto;
17 #define GNM_COLOR_TYPE (gnm_color_get_type ())
18 GType gnm_color_get_type (void);
19 GnmColor *gnm_color_new_go (GOColor c);
20 GnmColor *gnm_color_new_rgba16(guint16 red, guint16 green, guint16 blue, guint16 alpha);
21 GnmColor *gnm_color_new_rgb8 (guint8 red, guint8 green, guint8 blue);
22 GnmColor *gnm_color_new_rgba8 (guint8 red, guint8 green, guint8 blue, guint8 alpha);
23 GnmColor *gnm_color_new_pango (PangoColor const *c);
24 GnmColor *gnm_color_new_gdk (GdkRGBA const *c);
25 GnmColor *gnm_color_new_auto (GOColor c);
26 GnmColor *style_color_auto_font (void);
27 GnmColor *style_color_auto_back (void);
28 GnmColor *style_color_auto_pattern (void);
29 GnmColor *style_color_ref (GnmColor *sc);
30 void style_color_unref (GnmColor *sc);
31 gint style_color_equal (GnmColor const *a, GnmColor const *b);
32 GnmColor *style_color_black (void);
33 GnmColor *style_color_white (void);
34 GnmColor *style_color_grid (void);
36 /****************************************************************/
37 /* Internal */
38 void gnm_color_init (void);
39 void gnm_color_shutdown (void);
41 G_END_DECLS
43 #endif /* _GNM_STYLE_COLOR_H_ */