Logo Search packages:      
Sourcecode: inkscape version File versions

Verb * Inkscape::Verb::getbyid ( gchar const *  id  )  [static, inherited]

Find a Verb using it's ID.

id Which id to search for
This function uses the _verb_ids has table to find the verb by it's id. Should be much faster than previous implementations.

Definition at line 737 of file verbs.cpp.

References Inkscape::Verb::_verb_ids.

    Verb *verb = NULL;
    VerbIDTable::iterator verb_found = _verb_ids.find(id);

    if (verb_found != _verb_ids.end()) {
        verb = verb_found->second;

    if (verb == NULL)
        printf("Unable to find: %s\n", id);

    return verb;

Generated by  Doxygen 1.6.0   Back to index