if (!gstate->pattern) return CAIRO_STATUS_NO_MEMORY;
_cairo_gstate_set_rgb_color (cairo_gstate_t *gstate, double red, double green, double blue){    cairo_pattern_destroy (gstate->pattern);        gstate->pattern = _cairo_pattern_create_solid (red, green, blue);        return CAIRO_STATUS_SUCCESS;}