Logo Search packages:      
Sourcecode: inkscape version File versions

SPObject * Inkscape::Selection::single (  ) 

Returns a single selected object.

Returns:
NULL unless exactly one object is selected

Definition at line 297 of file selection.cpp.

Referenced by singleRepr().

                            {
    if ( _objs != NULL && _objs->next == NULL ) {
        return reinterpret_cast<SPObject *>(_objs->data);
    } else {
        return NULL;
    }
}


Generated by  Doxygen 1.6.0   Back to index