Logo Search packages:      
Sourcecode: inkscape version File versions

void Inkscape::Selection::add ( SPObject obj,
bool  persist_selection_context = false 
)

Add an SPObject to the set of selected objects.

Parameters:
obj the SPObject to add

Definition at line 149 of file selection.cpp.

References _add(), _emitChanged(), and includes().

Referenced by Inkscape::Extension::Internal::BlurEdge::effect(), and Inkscape::Trace::Tracer::traceThread().

                                                                              {
    g_return_if_fail(obj != NULL);
    g_return_if_fail(SP_IS_OBJECT(obj));

    if (includes(obj)) {
        return;
    }

    _invalidateCachedLists();
    _add(obj);
    _emitChanged(persist_selection_context);
}


Generated by  Doxygen 1.6.0   Back to index