ganv_item_new
GanvItem* ganv_item_new (GanvItem* parent,
GType type,
const gchar* first_arg_name,
...);
Creates a new canvas item with parent as its parent group. The item is created at the top of its parent's stack, and starts up as visible. The item is of the specified type, for example, it can be ganv_canvas_rect_get_type(). The list of object arguments/value pairs is used to configure the item. If you need to pass construct time parameters, you should use g_object_new to pass the parameters and ganv_item_construct to set up the canvas item.
- parent
The parent group for the new item.
- type
The object type of the item.
- first_arg_name
A list of object argument name/value pairs, NULL-terminated, used to configure the item. For example, "fill_color", "black", "width_units", 5.0, NULL.
- ...
first argument value, second argument name, second argument value, ...
- Returns
The newly-created item.