Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

SPGradient* sp_gradient_get_vector ( SPGradient gradient,
bool  force_vector 

Returns private vector of given gradient (the gradient at the end of the href chain which has stops), optionally normalizing it.


There exists a gradient in the chain that has stops.

Definition at line 829 of file sp-gradient.cpp.

References chase_hrefs(), and has_stops().

Referenced by objects_query_fillstroke().

    g_return_val_if_fail(gradient != NULL, NULL);
    g_return_val_if_fail(SP_IS_GRADIENT(gradient), NULL);

    SPGradient *const src = chase_hrefs(gradient, has_stops);
    return ( force_vector
             ? sp_gradient_ensure_vector_normalized(src)
             : src );

Generated by  Doxygen 1.6.0   Back to index