Logo Search packages:      
Sourcecode: inkscape version File versions

Inkscape::XML::Node * SPObject::updateRepr ( unsigned int  flags = SP_OBJECT_WRITE_EXT  )  [inherited]

Updates the object's repr based on the object's state.

This method updates the the repr attached to the object to reflect the object's current state; see the three-argument version for details.

flags object write flags that apply to this update
the updated repr
Update this object's XML node with flags value.

Definition at line 1189 of file sp-object.cpp.

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

Referenced by SPItem::setExplicitlyHidden(), and sp_filter_write().

    if (!SP_OBJECT_IS_CLONED(this)) {
        Inkscape::XML::Node *repr=SP_OBJECT_REPR(this);
        if (repr) {
            return updateRepr(repr->document(), repr, flags);
        } else {
            g_critical("Attempt to update non-existent repr");
            return NULL;
    } else {
        /* cloned objects have no repr */
        return NULL;

Generated by  Doxygen 1.6.0   Back to index