GUI: Move .ui files from goffice resources to glib resources
[gnumeric.git] / src / style-color.h
blob0f30cbe1edfc995a8769efda38798617eae0aa5d
1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 #ifndef _GNM_STYLE_COLOR_H_
3 # define _GNM_STYLE_COLOR_H_
5 #include "gnumeric.h"
6 #include "libgnumeric.h"
7 #include <goffice/goffice.h>
8 #include <gdk/gdk.h>
10 G_BEGIN_DECLS
12 struct _GnmColor {
13 GOColor go_color;
14 int ref_count;
15 gboolean is_auto;
18 #define GNM_COLOR_TYPE (gnm_color_get_type ())
19 GType gnm_color_get_type (void);
20 GnmColor *gnm_color_new_go (GOColor c);
21 GnmColor *gnm_color_new_rgba16(guint16 red, guint16 green, guint16 blue, guint16 alpha);
22 GnmColor *gnm_color_new_rgb8 (guint8 red, guint8 green, guint8 blue);
23 GnmColor *gnm_color_new_rgba8 (guint8 red, guint8 green, guint8 blue, guint8 alpha);
24 GnmColor *gnm_color_new_pango (PangoColor const *c);
25 GnmColor *gnm_color_new_gdk (GdkRGBA const *c);
26 GnmColor *gnm_color_new_auto (GOColor c);
27 GnmColor *style_color_auto_font (void);
28 GnmColor *style_color_auto_back (void);
29 GnmColor *style_color_auto_pattern (void);
30 GnmColor *style_color_ref (GnmColor *sc);
31 void style_color_unref (GnmColor *sc);
32 gint style_color_equal (GnmColor const *a, GnmColor const *b);
33 GnmColor *style_color_black (void);
34 GnmColor *style_color_white (void);
35 GnmColor *style_color_grid (void);
37 /****************************************************************/
38 /* Internal */
39 void gnm_color_init (void);
40 void gnm_color_shutdown (void);
42 G_END_DECLS
44 #endif /* _GNM_STYLE_COLOR_H_ */