Logo Search packages:      
Sourcecode: inkscape version File versions

Inkscape::Verb::Verb ( const unsigned int  code,
gchar const *  id,
gchar const *  name,
gchar const *  tip,
gchar const *  image 
) [inline]

Inititalizes the Verb with the parameters.

Parameters:
code Goes to _code
id Goes to _id
name Goes to _name
tip Goes to _tip
image Goes to _image
This function also sets _actions to NULL.

Warning:
NO DATA IS COPIED BY CALLING THIS FUNCTION.
In many respects this is very bad object oriented design, but it is done for a reason. All verbs today are of two types: 1) static or 2) created for extension. In the static case all of the strings are constants in the code, and thus don't really need to be copied. In the extensions case the strings are identical to the ones already created in the extension object, copying them would be a waste of memory.

Definition at line 286 of file verbs.h.

                              :
        _actions(NULL), _id(id), _name(name), _tip(tip), _image(image), _code(code) {
    }
    Verb (gchar const * id, gchar const * name, gchar const * tip, gchar const * image);


Generated by  Doxygen 1.6.0   Back to index