Logo Search packages:      
Sourcecode: inkscape version File versions

GType sp_gradient_get_type (  ) 

Registers SPGradient class and returns its type.

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

References sp_gradient_class_init(), and sp_gradient_init().

{
    static GType gradient_type = 0;
    if (!gradient_type) {
        GTypeInfo gradient_info = {
            sizeof(SPGradientClass),
            NULL, NULL,
            (GClassInitFunc) sp_gradient_class_init,
            NULL, NULL,
            sizeof(SPGradient),
            16,
            (GInstanceInitFunc) sp_gradient_init,
            NULL,   /* value_table */
        };
        gradient_type = g_type_register_static(SP_TYPE_PAINT_SERVER, "SPGradient",
                                               &gradient_info, (GTypeFlags)0);
    }
    return gradient_type;
}


Generated by  Doxygen 1.6.0   Back to index