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

SPCanvasItem* sp_canvas_item_new ( SPCanvasGroup parent,
GtkType  type,
gchar const *  first_arg_name,

Constructs new SPCanvasItem on SPCanvasGroup.

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

References sp_canvas_item_construct(), and sp_canvas_item_get_type().

Referenced by Box3D::VPDrag::addLine(), GrDrag::addLine(), Inkscape::UI::ControlPoint::ControlPoint(), Inkscape::CanvasGrid::createCanvasItem(), SPDesktop::init(), SPSVGView::setDocument(), sp_draw_anchor_new(), sp_knot_new(), sp_pen_context_setup(), and sp_svg_view_widget_init().

    va_list args;

    g_return_val_if_fail (parent != NULL, NULL);
    g_return_val_if_fail (SP_IS_CANVAS_GROUP (parent), NULL);
    g_return_val_if_fail (gtk_type_is_a (type, sp_canvas_item_get_type ()), NULL);

    SPCanvasItem *item = SP_CANVAS_ITEM (gtk_type_new (type));

    va_start (args, first_arg_name);
    sp_canvas_item_construct (item, parent, first_arg_name, args);
    va_end (args);

    return item;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index