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

static void sp_tref_update ( SPObject object,
SPCtx ctx,
guint  flags 
) [static]

Receives update notifications. Code based on sp_use_update and sp_tspan_update.

Definition at line 242 of file sp-tref.cpp.

References SPObject::uflags, and SPObject::updateDisplay().

{
    debug("0x%p",object);

    SPTRef *tref = SP_TREF(object);

    if (((SPObjectClass *) tref_parent_class)->update) {
        ((SPObjectClass *) tref_parent_class)->update(object, ctx, flags);
    }

    if (flags & SP_OBJECT_MODIFIED_FLAG) {
        flags |= SP_OBJECT_PARENT_MODIFIED_FLAG;
    }

    flags &= SP_OBJECT_MODIFIED_CASCADE;

    SPObject *child = tref->stringChild;
    if (child) {
        if ( flags || ( child->uflags & SP_OBJECT_MODIFIED_FLAG )) {
            child->updateDisplay(ctx, flags);
        }
    }


}


Generated by  Doxygen 1.6.0   Back to index