gfxMatrix matrix; cairo_matrix_t *t = cairo_matrix_create(); cairo_pattern_get_matrix(mPattern, t); matrix = t; cairo_matrix_destroy(t); return matrix;
cairo_matrix_t mat; cairo_pattern_get_matrix(mPattern, &mat); return gfxMatrix(mat);
    gfxMatrix CurrentMatrix() const {        gfxMatrix matrix;        cairo_matrix_t *t = cairo_matrix_create();        cairo_pattern_get_matrix(mPattern, t);        matrix = t;        cairo_matrix_destroy(t);        return matrix;    }