Logo Search packages:      
Sourcecode: inkscape version File versions

unsigned int sp_repr_set_svg_double ( Inkscape::XML::Node repr,
gchar const *  key,
double  val 

For attributes where an exponent is allowed.

Not suitable for property attributes (fill-opacity, font-size etc.).

Definition at line 605 of file repr-util.cpp.

References Inkscape::XML::Node::setAttribute().

Referenced by sp_export_export_clicked(), sp_feComposite_write(), sp_feDisplacementMap_write(), sp_filter_write(), sp_lineargradient_write(), sp_offset_write(), sp_radialgradient_write(), sp_root_write(), and sp_spiral_write().

    g_return_val_if_fail(repr != NULL, FALSE);
    g_return_val_if_fail(key != NULL, FALSE);

    Inkscape::SVGOStringStream os;
    os << val;

    repr->setAttribute(key, os.str().c_str());
    return true;

Generated by  Doxygen 1.6.0   Back to index