GooCanvas.CanvasPath

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.CanvasPath GooCanvas.CanvasPath GooCanvas.CanvasItemSimple->GooCanvas.CanvasPath

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

data

str

w

The sequence of path commands

height

float

r/w

The height of the path

width

float

r/w

The width of the path

x

float

r/w

The x coordinate of the path

y

float

r/w

The y coordinate of the path

Signals

Inherited:

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

Fields

Inherited:

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

Name

Type

Access

Description

parent

GooCanvas.CanvasItemSimple

r

path_data

GooCanvas.CanvasPathData

r

Class Details

class GooCanvas.CanvasPath(**kwargs)
Bases:

GooCanvas.CanvasItemSimple

Abstract:

No

Structure:

GooCanvas.CanvasPathClass

GooCanvas.CanvasPath represents a path item, which is a series of one or more lines, bezier curves, or elliptical arcs.

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().

GooCanvas.CanvasPath uses the same path specification strings as the Scalable Vector Graphics (SVG) path element. For details see the

SVG specification. To create a GooCanvas.CanvasPath use goo_canvas_path_new().

To get or set the properties of an existing GooCanvas.CanvasPath, use g_object_get() and g_object_set().

Property Details

GooCanvas.CanvasPath.props.data
Name:

data

Type:

str

Default Value:

None

Flags:

WRITABLE

The sequence of path commands, specified as a string using the same syntax as in the Scalable Vector Graphics (SVG) path element.

GooCanvas.CanvasPath.props.height
Name:

height

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The height of the path

GooCanvas.CanvasPath.props.width
Name:

width

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The width of the path

GooCanvas.CanvasPath.props.x
Name:

x

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The x coordinate of the path

GooCanvas.CanvasPath.props.y
Name:

y

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The y coordinate of the path