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

void Inkscape::Selection::toggle ( SPObject obj  ) 

Removes an item if selected, adds otherwise.

Parameters:
item the item to unselect

Definition at line 205 of file selection.cpp.

References includes().

                                    {
    if (includes (obj)) {
        remove (obj);
    } else {
        add(obj);
    }
}


Generated by  Doxygen 1.6.0   Back to index