Logo Search packages:      
Sourcecode: inkscape version File versions

void sp_curve_reset ( SPCurve curve  ) 

Set curve to empty curve.

Definition at line 320 of file curve.cpp.

References SPCurve::_bpath, SPCurve::closed, NArtBpath::code, SPCurve::end, SPCurve::hascpt, SPCurve::moving, NR_END, SPCurve::posSet, and SPCurve::substart.

Referenced by fit_and_split(), spdc_finish_endpoint(), spdc_pen_finish_segment(), and spdc_set_endpoint().

{
    g_return_if_fail(curve != NULL);

    curve->_bpath->code = NR_END;
    curve->end = 0;
    curve->substart = 0;
    curve->hascpt = false;
    curve->posSet = false;
    curve->moving = false;
    curve->closed = false;
}


Generated by  Doxygen 1.6.0   Back to index