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

GType SPGradient::getType ( void   ) [static, inherited]

Registers SPGradient class and returns its type.

Reimplemented from SPPaintServer.

Definition at line 333 of file sp-gradient.cpp.

References SPGradientImpl::classInit(), and SPGradientImpl::init().

    static GType gradient_type = 0;
    if (!gradient_type) {
        GTypeInfo gradient_info = {
            NULL, NULL,
            (GClassInitFunc) SPGradientImpl::classInit,
            NULL, NULL,
            (GInstanceInitFunc) SPGradientImpl::init,
            NULL,   /* value_table */
        gradient_type = g_type_register_static(SP_TYPE_PAINT_SERVER, "SPGradient",
                                               &gradient_info, (GTypeFlags)0);
    return gradient_type;

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index