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

bool SPObject::isAncestorOf ( SPObject const *  object ) const [inherited]

True if object is non-NULL and this is some in/direct parent of object.

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

Referenced by SPMaskReference::_acceptObject(), SPClipPathReference::_acceptObject(), Inkscape::ObjectHierarchy::setBottom(), and Inkscape::ObjectHierarchy::setTop().

    g_return_val_if_fail(object != NULL, false);
    object = SP_OBJECT_PARENT(object);
    while (object) {
        if ( object == this ) {
            return true;
        object = SP_OBJECT_PARENT(object);
    return false;

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index