Logo Search packages:      
Sourcecode: inkscape version File versions

GType sp_canvas_get_type ( void   ) 

Registers the SPCanvas class if necessary, and returns the type ID associated to it.

Returns:
The type ID of the SPCanvas class.

Definition at line 955 of file sp-canvas.cpp.

References sp_canvas_class_init(), and sp_canvas_init().

Referenced by sp_canvas_new_aa().

{
    static GType type = 0;
    if (!type) {
        GTypeInfo info = {
            sizeof(SPCanvasClass),
            0, // base_init
            0, // base_finalize
            (GClassInitFunc)sp_canvas_class_init,
            0, // class_finalize
            0, // class_data
            sizeof(SPCanvas),
            0, // n_preallocs
            (GInstanceInitFunc)sp_canvas_init,
            0 // value_table
        };
        type = g_type_register_static(GTK_TYPE_WIDGET, "SPCanvas", &info, static_cast<GTypeFlags>(0));
    }
    return type;
}


Generated by  Doxygen 1.6.0   Back to index