CanvasEllipse


Description:

[ CCode ( has_construct_function = false , type = "GooCanvasItem*" ) ]
public CanvasEllipse (CanvasItem? parent, double center_x, double center_y, double radius_x, double radius_y, ...)

Creates a new ellipse item.

Here's an example showing how to create an ellipse centered at (100.0, 100.0), with a horizontal radius of 50.0 and a vertical radius of 30.0. It is drawn with a red outline with a width of 5.0 and filled with blue:

<informalexample><programlisting> GooCanvasItem *ellipse = goo_canvas_ellipse_new (mygroup, 100.0, 100.0, 50.0, 30.0, "stroke-color", "red", "line-width", 5.0, "fill-color", "blue", NULL); </programlisting></informalexample>

Parameters:

parent

the parent item, or null. If a parent is specified, it will assume ownership of the item, and the item will automatically be freed when it is removed from the parent. Otherwise call unref to free it.

center_x

the x coordinate of the center of the ellipse.

center_y

the y coordinate of the center of the ellipse.

radius_x

the horizontal radius of the ellipse.

radius_y

the vertical radius of the ellipse.

...

optional pairs of property names and values, and a terminating null.

Returns:

a new ellipse item.