Logo Search packages:      
Sourcecode: inkscape version File versions

static void sp_root_class_init ( SPRootClass *  klass  )  [static]

Initializes an SPRootClass object by setting its class and parent class objects, and registering function pointers (i.e. gobject-style virtual functions) for various operations.

Definition at line 82 of file sp-root.cpp.

References SPItemClass::bbox, SPObjectClass::build, SPObjectClass::child_added, SPObjectClass::modified, SPItemClass::print, SPObjectClass::release, SPObjectClass::remove_child, SPObjectClass::set, SPItemClass::show, sp_root_bbox(), sp_root_build(), sp_root_child_added(), sp_root_modified(), sp_root_print(), sp_root_release(), sp_root_remove_child(), sp_root_set(), sp_root_show(), sp_root_update(), sp_root_write(), SPObjectClass::update, and SPObjectClass::write.

Referenced by sp_root_get_type().

{
    GObjectClass *object_class;
    SPObjectClass *sp_object_class;
    SPItemClass *sp_item_class;

    object_class = G_OBJECT_CLASS(klass);
    sp_object_class = (SPObjectClass *) klass;
    sp_item_class = (SPItemClass *) klass;

    parent_class = (SPGroupClass *)g_type_class_ref(SP_TYPE_GROUP);

    sp_object_class->build = sp_root_build;
    sp_object_class->release = sp_root_release;
    sp_object_class->set = sp_root_set;
    sp_object_class->child_added = sp_root_child_added;
    sp_object_class->remove_child = sp_root_remove_child;
    sp_object_class->update = sp_root_update;
    sp_object_class->modified = sp_root_modified;
    sp_object_class->write = sp_root_write;

    sp_item_class->show = sp_root_show;
    sp_item_class->bbox = sp_root_bbox;
    sp_item_class->print = sp_root_print;
}


Generated by  Doxygen 1.6.0   Back to index