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

SPGradientSpread SPGradient::fetchSpread (  ) [inherited]

Returns the effective spread of given gradient (climbing up the refs chain if needed).

Precondition:
SP_IS_GRADIENT(gradient).

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

References chase_hrefs(), has_spread_set(), and SPGradient::spread.

Referenced by SPGradientImpl::gradientRefChanged(), SPRGPainter::painter_new(), and SPLGPainter::painter_new().

{
    SPGradient const *src = chase_hrefs(this, has_spread_set);
    return ( src
             ? src->spread
             : SP_GRADIENT_SPREAD_PAD ); // pad is the default
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index