GooCanvas.CanvasPolyline

g GObject.GInterface GObject.GInterface GooCanvas.CanvasItem GooCanvas.CanvasItem GObject.GInterface->GooCanvas.CanvasItem GObject.Object GObject.Object GooCanvas.CanvasItemSimple GooCanvas.CanvasItemSimple GObject.Object->GooCanvas.CanvasItemSimple GooCanvas.CanvasItem->GooCanvas.CanvasItemSimple GooCanvas.CanvasPolyline GooCanvas.CanvasPolyline GooCanvas.CanvasItemSimple->GooCanvas.CanvasPolyline

Subclasses:

None

Methods

Inherited:

GooCanvas.CanvasItemSimple (9), GObject.Object (37), GooCanvas.CanvasItem (48)

Structs:

GObject.ObjectClass (5)

Virtual Methods

Inherited:

GooCanvas.CanvasItemSimple (4), GObject.Object (7), GooCanvas.CanvasItem (44)

Properties

Inherited:

GooCanvas.CanvasItemSimple (23), GooCanvas.CanvasItem (9)

Name

Type

Flags

Short Description

arrow-length

float

r/w

The length of the arrows, as a multiple of the line width

arrow-tip-length

float

r/w

The length of the arrow tip, as a multiple of the line width

arrow-width

float

r/w

The width of the arrows, as a multiple of the line width

close-path

bool

r/w

If the last point should be connected to the first

end-arrow

bool

r/w

If an arrow should be displayed at the end of the polyline

height

float

r/w

The height of the polyline

points

GooCanvas.CanvasPoints

r/w

The array of points

start-arrow

bool

r/w

If an arrow should be displayed at the start of the polyline

width

float

r/w

The width of the polyline

x

float

r/w

The x coordinate of the left-most point of the polyline

y

float

r/w

The y coordinate of the top-most point of the polyline

Signals

Inherited:

GObject.Object (1), GooCanvas.CanvasItem (14)

Fields

Inherited:

GObject.Object (1), GooCanvas.CanvasItem (14)

Name

Type

Access

Description

parent

GooCanvas.CanvasItemSimple

r

polyline_data

GooCanvas.CanvasPolylineData

r

Class Details

class GooCanvas.CanvasPolyline(**kwargs)
Bases:

GooCanvas.CanvasItemSimple

Abstract:

No

Structure:

GooCanvas.CanvasPolylineClass

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 the GooCanvas.CanvasItem functions such as GooCanvas.CanvasItem.raise_() and GooCanvas.CanvasItem.rotate().

To create a GooCanvas.CanvasPolyline use goo_canvas_polyline_new(), or goo_canvas_polyline_new_line() for a GooCanvas.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
Name:

arrow-length

Type:

float

Default Value:

5.0

Flags:

READABLE, WRITABLE

The length of the arrows, as a multiple of the line width

GooCanvas.CanvasPolyline.props.arrow_tip_length
Name:

arrow-tip-length

Type:

float

Default Value:

4.0

Flags:

READABLE, WRITABLE

The length of the arrow tip, as a multiple of the line width

GooCanvas.CanvasPolyline.props.arrow_width
Name:

arrow-width

Type:

float

Default Value:

4.0

Flags:

READABLE, WRITABLE

The width of the arrows, as a multiple of the line width

GooCanvas.CanvasPolyline.props.close_path
Name:

close-path

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

If the last point should be connected to the first

GooCanvas.CanvasPolyline.props.end_arrow
Name:

end-arrow

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

If an arrow should be displayed at the end of the polyline

GooCanvas.CanvasPolyline.props.height
Name:

height

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The height of the polyline

GooCanvas.CanvasPolyline.props.points
Name:

points

Type:

GooCanvas.CanvasPoints

Default Value:

None

Flags:

READABLE, WRITABLE

The array of points

GooCanvas.CanvasPolyline.props.start_arrow
Name:

start-arrow

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

If an arrow should be displayed at the start of the polyline

GooCanvas.CanvasPolyline.props.width
Name:

width

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The width of the polyline

GooCanvas.CanvasPolyline.props.x
Name:

x

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The x coordinate of the left-most point of the polyline

GooCanvas.CanvasPolyline.props.y
Name:

y

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The y coordinate of the top-most point of the polyline