1 #ifndef _GNM_STYLE_COLOR_H_
2 # define _GNM_STYLE_COLOR_H_
5 #include <libgnumeric.h>
6 #include <goffice/goffice.h>
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 /****************************************************************/
38 void gnm_color_init (void);
39 void gnm_color_shutdown (void);
43 #endif /* _GNM_STYLE_COLOR_H_ */