| Goffice Reference Manual | ||||
|---|---|---|---|---|
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);
typedef struct {
GOColor color;
char const *name; /* english name - eg. "white" */
} GONamedColor;
#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)
|
gboolean go_color_from_str (char const *str,
GOColor *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.
|
PangoAttribute* go_color_to_pango (GOColor color, gboolean is_fore);
|
|
|
|
Returns : |