GooCanvas.CanvasPolyline¶
- Subclasses:
None
Methods¶
- Inherited:
GooCanvas.CanvasItemSimple (9), GObject.Object (37), GooCanvas.CanvasItem (48)
- Structs:
Virtual Methods¶
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The length of the arrows, as a multiple of the line width |
||
r/w |
The length of the arrow tip, as a multiple of the line width |
||
r/w |
The width of the arrows, as a multiple of the line width |
||
r/w |
If the last point should be connected to the first |
||
r/w |
If an arrow should be displayed at the end of the polyline |
||
r/w |
The height of the polyline |
||
r/w |
The array of points |
||
r/w |
If an arrow should be displayed at the start of the polyline |
||
r/w |
The width of the polyline |
||
r/w |
The x coordinate of the left-most point of the polyline |
||
r/w |
The y coordinate of the top-most point of the polyline |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
||
polyline_data |
r |
Class Details¶
- class GooCanvas.CanvasPolyline(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
GooCanvas.CanvasPolyline
represents a polyline item, which is a series of one or more lines, with optional arrows at either end.It is a subclass of
GooCanvas.CanvasItemSimple
and so inherits all of the style properties such as “stroke-color”, “fill-color” and “line-width”.It also implements the
GooCanvas.CanvasItem
interface, so you can use theGooCanvas.CanvasItem
functions such asGooCanvas.CanvasItem.raise_
() andGooCanvas.CanvasItem.rotate
().To create a
GooCanvas.CanvasPolyline
use goo_canvas_polyline_new(), or goo_canvas_polyline_new_line() for aGooCanvas.simple
line between two points.To get or set the properties of an existing
GooCanvas.CanvasPolyline
, use g_object_get() and g_object_set().
Property Details¶
- GooCanvas.CanvasPolyline.props.arrow_length¶
-
The length of the arrows, as a multiple of the line width
- GooCanvas.CanvasPolyline.props.arrow_tip_length¶
-
The length of the arrow tip, as a multiple of the line width
- GooCanvas.CanvasPolyline.props.arrow_width¶
-
The width of the arrows, as a multiple of the line width
- GooCanvas.CanvasPolyline.props.close_path¶
-
If the last point should be connected to the first
- GooCanvas.CanvasPolyline.props.end_arrow¶
-
If an arrow should be displayed at the end of the polyline
- GooCanvas.CanvasPolyline.props.height¶
-
The height of the polyline
- GooCanvas.CanvasPolyline.props.points¶
- Name:
points
- Type:
- Default Value:
- Flags:
The array of points
- GooCanvas.CanvasPolyline.props.start_arrow¶
-
If an arrow should be displayed at the start of the polyline
- GooCanvas.CanvasPolyline.props.width¶
-
The width of the polyline
- GooCanvas.CanvasPolyline.props.x¶
-
The x coordinate of the left-most point of the polyline