Logo Search packages:      
Sourcecode: inkscape version File versions

static Verb* Inkscape::Verb::get ( unsigned int  code  )  [inline, static, inherited]

A function to turn a code into a verb.

Parameters:
code The code to be translated
Returns:
A pointer to a verb object or a NULL if not found.
This is an inline function to translate the codes which are static quickly. This should optimize into very quick code everywhere which hard coded codes are used. In the case where the code is not static the get_search function is used.

Definition at line 311 of file verbs.h.

References Inkscape::Verb::_base_verbs, and Inkscape::Verb::get_search().

Referenced by sp_export_dialog(), and Inkscape::UI::Dialogs::TraceDialogImpl::TraceDialogImpl().

                                          {
        if (code <= SP_VERB_LAST) {
            return _base_verbs[code];
        } else {
            return get_search(code);
        }
    }


Generated by  Doxygen 1.6.0   Back to index