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

SPGradientUnits sp_gradient_get_units ( SPGradient gradient  ) 

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


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

References chase_hrefs(), has_units_set(), and SPGradient::units.

Referenced by gradient_ref_changed().

    g_return_val_if_fail(SP_IS_GRADIENT(gradient), SP_GRADIENT_UNITS_OBJECTBOUNDINGBOX);

    SPGradient const *src = chase_hrefs(gradient, has_units_set);
    return ( src
             ? src->units
             : SP_GRADIENT_UNITS_OBJECTBOUNDINGBOX ); // bbox is the default

Generated by  Doxygen 1.6.0   Back to index