GooCanvas.CanvasPolylineModel¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
Virtual Methods¶
- Inherited:
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_object |
r |
||
polyline_data |
r |
Class Details¶
- class GooCanvas.CanvasPolylineModel(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
GooCanvas.CanvasPolylineModel
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
GooCanvas.CanvasItemModelSimple
and so inherits all of the style properties such as “stroke-color”, “fill-color” and “line-width”.It also implements the
GooCanvas.CanvasItemModel
interface, so you can use theGooCanvas.CanvasItemModel
functions such asGooCanvas.CanvasItemModel.raise_
() andGooCanvas.CanvasItemModel.rotate
().To create a
GooCanvas.CanvasPolylineModel
use goo_canvas_polyline_model_new(), or goo_canvas_polyline_model_new_line() for aGooCanvas.simple
line between two points.To get or set the properties of an existing
GooCanvas.CanvasPolylineModel
, 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
GooCanvas.CanvasPolyline
objects. (SeeGooCanvas.Canvas.get_item
() andGooCanvas.Canvas
::item-created
.)
Property Details¶
- GooCanvas.CanvasPolylineModel.props.arrow_length¶
-
The length of the arrows, as a multiple of the line width
- GooCanvas.CanvasPolylineModel.props.arrow_tip_length¶
-
The length of the arrow tip, as a multiple of the line width
- GooCanvas.CanvasPolylineModel.props.arrow_width¶
-
The width of the arrows, as a multiple of the line width
- GooCanvas.CanvasPolylineModel.props.close_path¶
-
If the last point should be connected to the first
- GooCanvas.CanvasPolylineModel.props.end_arrow¶
-
If an arrow should be displayed at the end of the polyline
- GooCanvas.CanvasPolylineModel.props.height¶
-
The height of the polyline
- GooCanvas.CanvasPolylineModel.props.points¶
- Name:
points
- Type:
- Default Value:
- Flags:
The array of points
- GooCanvas.CanvasPolylineModel.props.start_arrow¶
-
If an arrow should be displayed at the start of the polyline
- GooCanvas.CanvasPolylineModel.props.width¶
-
The width of the polyline
- GooCanvas.CanvasPolylineModel.props.x¶
-
The x coordinate of the left-most point of the polyline