Logo Search packages:      
Sourcecode: inkscape version File versions

static void sp_root_init ( SPRoot root  )  [static]

Initializes an SPRoot object by setting its default parameter values.

Definition at line 112 of file sp-root.cpp.

References SPRoot::c2p, SPRoot::defs, SPRoot::height, SPRoot::inkscape, SPRoot::original, NR::Matrix::set_identity(), SPRoot::sodipodi, SPRoot::svg, SPRoot::version, SPRoot::viewBox_set, SPRoot::width, SPRoot::x, and SPRoot::y.

Referenced by sp_root_get_type().

{
    static Inkscape::Version const zero_version(0, 0);

    sp_version_from_string(SVG_VERSION, &root->original.svg);
    root->version.svg = root->original.svg;
    root->version.inkscape = root->original.inkscape =
        root->version.sodipodi = root->original.sodipodi = zero_version;

    root->x.unset();
    root->y.unset();
    root->width.unset(SVGLength::PERCENT, 1.0, 1.0);
    root->height.unset(SVGLength::PERCENT, 1.0, 1.0);

    /* nr_matrix_set_identity(&root->viewbox); */
    root->viewBox_set = FALSE;

    root->c2p.set_identity();

    root->defs = NULL;
}


Generated by  Doxygen 1.6.0   Back to index