go-color

go-color

Synopsis

                    GONamedColor;
#define             GO_COLOR_TO_CAIRO                   (x)
gboolean            go_color_from_str                   (char const *str,
                                                         GOColor *res);
gchar*              go_color_as_str                     (GOColor color);
PangoAttribute*     go_color_to_pango                   (GOColor color,
                                                         gboolean is_fore);
GdkColor*           go_color_to_gdk                     (GOColor color,
                                                         GdkColor *res);

Description

Details

GONamedColor

typedef struct {
	GOColor		 color;
	char const 	*name;	/* english name - eg. "white" */
} GONamedColor;


GO_COLOR_TO_CAIRO()

#define GO_COLOR_TO_CAIRO(x) GO_COLOR_DOUBLE_R(x),GO_COLOR_DOUBLE_G(x),GO_COLOR_DOUBLE_B(x),GO_COLOR_DOUBLE_A(x)

x :


go_color_from_str ()

gboolean            go_color_from_str                   (char const *str,
                                                         GOColor *res);

str :

res :

Returns :

TRUE if str can be parsed as a color of the form R:G:B:A and the result is stored in res.

go_color_as_str ()

gchar*              go_color_as_str                     (GOColor color);

color :

Returns :


go_color_to_pango ()

PangoAttribute*     go_color_to_pango                   (GOColor color,
                                                         gboolean is_fore);

color :

is_fore :

Returns :


go_color_to_gdk ()

GdkColor*           go_color_to_gdk                     (GOColor color,
                                                         GdkColor *res);

color :

res :

Returns :