Logo Search packages:      
Sourcecode: inkscape version File versions

SPObject* sp_object_prev ( SPObject child  ) 

Returns previous object in sibling list or NULL.

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

{
    SPObject *parent = SP_OBJECT_PARENT(child);
    for ( SPObject *i = sp_object_first_child(parent); i; i = SP_OBJECT_NEXT(i) ) {
        if (SP_OBJECT_NEXT(i) == child)
            return i;
    }
    return NULL;
}


Generated by  Doxygen 1.6.0   Back to index