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

void sp_gradient_set_units ( SPGradient gr,
SPGradientUnits  units 
)

Set units property of gradient and emit modified.

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

References SPGradient::units, and SPGradient::units_set.

{
    if (units != gr->units) {
        gr->units = units;
        gr->units_set = TRUE;
        SP_OBJECT(gr)->requestModified(SP_OBJECT_MODIFIED_FLAG);
    }
}


Generated by  Doxygen 1.6.0   Back to index