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

void Inkscape::ObjectHierarchy::_trimBelow ( SPObject limit  )  [private]

removes all objects below the limit object

Remove all objects under given object.

Parameters:
limit If NULL, remove all.

Definition at line 144 of file object-hierarchy.cpp.

References sp_object_ref(), and sp_object_unref().

Referenced by setBottom().

                                                {
    while ( !_hierarchy.empty() && _hierarchy.front().object != limit ) {
        SPObject *object=_hierarchy.front().object;
        sp_object_ref(object, NULL);
        _detach(_hierarchy.front());
        _hierarchy.pop_front();
        _removed_signal.emit(object);
        sp_object_unref(object, NULL);
    }
}


Generated by  Doxygen 1.6.0   Back to index