GooCanvas.CanvasPathModel

g GObject.GInterface GObject.GInterface GooCanvas.CanvasItemModel GooCanvas.CanvasItemModel GObject.GInterface->GooCanvas.CanvasItemModel GObject.Object GObject.Object GooCanvas.CanvasItemModelSimple GooCanvas.CanvasItemModelSimple GObject.Object->GooCanvas.CanvasItemModelSimple GooCanvas.CanvasItemModel->GooCanvas.CanvasItemModelSimple GooCanvas.CanvasPathModel GooCanvas.CanvasPathModel GooCanvas.CanvasItemModelSimple->GooCanvas.CanvasPathModel

Subclasses:

None

Methods

Inherited:

GObject.Object (37), GooCanvas.CanvasItemModel (30)

Structs:

GObject.ObjectClass (5)

Virtual Methods

Inherited:

GObject.Object (7), GooCanvas.CanvasItemModel (19)

Properties

Inherited:

GooCanvas.CanvasItemModelSimple (23), GooCanvas.CanvasItemModel (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.CanvasItemModel (6)

Fields

Inherited:

GObject.Object (1), GooCanvas.CanvasItemModel (6)

Name

Type

Access

Description

parent_object

GooCanvas.CanvasItemModelSimple

r

path_data

GooCanvas.CanvasPathData

r

Class Details

class GooCanvas.CanvasPathModel(**kwargs)
Bases:

GooCanvas.CanvasItemModelSimple

Abstract:

No

Structure:

GooCanvas.CanvasPathModelClass

GooCanvas.CanvasPathModel represents a model for path items, which are a series of one or more lines, bezier curves, or elliptical arcs.

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

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

SVG specification. To create a GooCanvas.CanvasPathModel use goo_canvas_path_model_new().

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

To respond to events such as mouse clicks on the path you must connect to the signal handlers of the corresponding GooCanvas.CanvasPath objects. (See GooCanvas.Canvas.get_item() and GooCanvas.Canvas ::item-created.)

Property Details

GooCanvas.CanvasPathModel.props.data
Name:

data

Type:

str

Default Value:

None

Flags:

WRITABLE

The sequence of path commands

GooCanvas.CanvasPathModel.props.height
Name:

height

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The height of the path

GooCanvas.CanvasPathModel.props.width
Name:

width

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The width of the path

GooCanvas.CanvasPathModel.props.x
Name:

x

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The x coordinate of the path

GooCanvas.CanvasPathModel.props.y
Name:

y

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The y coordinate of the path