#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) |
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 | |||
) |
References GO_COLOR_UINT_B, GO_COLOR_UINT_G, GO_COLOR_UINT_R, UINT_RGBA_B, UINT_RGBA_G, and UINT_RGBA_R.