Functions

go-color.c File Reference

#include <goffice/goffice-config.h>
#include "go-color.h"
#include <stdio.h>

Functions

gboolean go_color_from_str (gchar const *str, GOColor *res)
 go_color_from_str : : :
gchar * go_color_as_str (GOColor color)
PangoAttribute * go_color_to_pango (GOColor color, gboolean is_fore)

Function Documentation

gchar* go_color_as_str ( GOColor  color  ) 

References GO_COLOR_TO_RGBA, and UINT_TO_RGBA.

gboolean go_color_from_str ( gchar const *  str,
GOColor res 
)

go_color_from_str : : :

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

References RGBA_TO_UINT.

PangoAttribute* go_color_to_pango ( GOColor  color,
gboolean  is_fore 
)