| Top |  |  |  |  | 
| GooCanvasPolylineModelGooCanvasPolylineModel — a model for polyline items (a series of lines with optional arrows). | 
| double | arrow-length | Read / Write | 
| double | arrow-tip-length | Read / Write | 
| double | arrow-width | Read / Write | 
| gboolean | close-path | Read / Write | 
| gboolean | end-arrow | Read / Write | 
| double | height | Read / Write | 
| GooCanvasPoints * | points | Read / Write | 
| gboolean | start-arrow | Read / Write | 
| double | width | Read / Write | 
| double | x | Read / Write | 
| double | y | Read / Write | 
GooCanvasPolylineModel represents a model for polyline items, which are a series of one or more lines, with optional arrows at either end.
It is a subclass of GooCanvasItemModelSimple and so inherits all of the style properties such as "stroke-color", "fill-color" and "line-width".
It also implements the GooCanvasItemModel interface, so you can use the
GooCanvasItemModel functions such as goo_canvas_item_model_raise() and
goo_canvas_item_model_rotate().
To create a GooCanvasPolylineModel use goo_canvas_polyline_model_new(), or
goo_canvas_polyline_model_new_line() for a simple line between two points.
To get or set the properties of an existing GooCanvasPolylineModel, use
g_object_get() and g_object_set().
To respond to events such as mouse clicks on the polyline you must connect
to the signal handlers of the corresponding GooCanvasPolyline objects.
(See goo_canvas_get_item() and “item-created”.)
GooCanvasItemModel * goo_canvas_polyline_model_new (GooCanvasItemModel *parent,gboolean close_path,gint num_points,...);
Creates a new polyline model.
Here's an example showing how to create a filled triangle with vertices at (100,100), (300,100), and (200,300).
| 1 2 3 4 5 6 7 8 | GooCanvasItemModel *polyline = goo_canvas_polyline_model_new (mygroup, TRUE, 3, 100.0, 100.0, 300.0, 100.0, 200.0, 300.0, "stroke-color", "red", "line-width", 5.0, "fill-color", "blue", NULL); | 
| parent | the parent model, or  | [skip] | 
| close_path | if the last point should be connected to the first. | |
| num_points | the number of points in the polyline. | |
| ... | the pairs of coordinates for each point in the line, followed by
optional pairs of property names and values, and a terminating  | 
GooCanvasItemModel * goo_canvas_polyline_model_new_line (GooCanvasItemModel *parent,gdouble x1,gdouble y1,gdouble x2,gdouble y2,...);
Creates a new polyline model with a single line.
Here's an example showing how to create a line from (100,100) to (300,300).
| 1 2 3 4 5 6 | GooCanvasItemModel *polyline = goo_canvas_polyline_model_new_line (mygroup, 100.0, 100.0, 300.0, 300.0, "stroke-color", "red", "line-width", 5.0, NULL); | 
| parent | the parent model, or  | [skip] | 
| x1 | the x coordinate of the start of the line. | |
| y1 | the y coordinate of the start of the line. | |
| x2 | the x coordinate of the end of the line. | |
| y2 | the y coordinate of the end of the line. | |
| ... | optional pairs of property names and values, and a terminating  | 
struct GooCanvasPolylineModel;
The GooCanvasPolylineModel struct contains private data only.
“arrow-length” property  “arrow-length”             double
The length of the arrows, as a multiple of the line width.
Owner: GooCanvasPolylineModel
Flags: Read / Write
Allowed values: >= 0
Default value: 5
“arrow-tip-length” property  “arrow-tip-length”         double
The length of the arrow tip, as a multiple of the line width.
Owner: GooCanvasPolylineModel
Flags: Read / Write
Allowed values: >= 0
Default value: 4
“arrow-width” property  “arrow-width”              double
The width of the arrows, as a multiple of the line width.
Owner: GooCanvasPolylineModel
Flags: Read / Write
Allowed values: >= 0
Default value: 4
“close-path” property  “close-path”               gboolean
If the last point should be connected to the first.
Owner: GooCanvasPolylineModel
Flags: Read / Write
Default value: FALSE
“end-arrow” property  “end-arrow”                gboolean
If an arrow should be displayed at the end of the polyline.
Owner: GooCanvasPolylineModel
Flags: Read / Write
Default value: FALSE
“height” property  “height”                   double
The height of the polyline.
Owner: GooCanvasPolylineModel
Flags: Read / Write
Allowed values: >= 0
Default value: 0
“points” property“points” GooCanvasPoints *
The array of points.
Owner: GooCanvasPolylineModel
Flags: Read / Write
“start-arrow” property  “start-arrow”              gboolean
If an arrow should be displayed at the start of the polyline.
Owner: GooCanvasPolylineModel
Flags: Read / Write
Default value: FALSE
“width” property  “width”                    double
The width of the polyline.
Owner: GooCanvasPolylineModel
Flags: Read / Write
Allowed values: >= 0
Default value: 0
“x” property  “x”                        double
The x coordinate of the left-most point of the polyline.
Owner: GooCanvasPolylineModel
Flags: Read / Write
Default value: 0