Logo Search packages:      
Sourcecode: inkscape version File versions

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

Constructs new SPCanvasItem on SPCanvasGroup.

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

References sp_canvas_item_construct(), and sp_canvas_item_get_type().

Referenced by GrDrag::addLine(), SPDesktop::init(), SPSVGView::setDocument(), sp_draw_anchor_new(), sp_knot_new(), sp_node_ensure_knot_exists(), 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;
}


Generated by  Doxygen 1.6.0   Back to index