GooCanvas.CanvasPathModel¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
w |
The sequence of path commands |
||
r/w |
The height of the path |
||
r/w |
The width of the path |
||
r/w |
The x coordinate of the path |
||
r/w |
The y coordinate of the path |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_object |
r |
||
path_data |
r |
Class Details¶
- class GooCanvas.CanvasPathModel(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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 theGooCanvas.CanvasItemModel
functions such asGooCanvas.CanvasItemModel.raise_
() andGooCanvas.CanvasItemModel.rotate
().GooCanvas.CanvasPathModel
uses the same path specification strings as the Scalable Vector Graphics (SVG) path element. For details see theSVG 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. (SeeGooCanvas.Canvas.get_item
() andGooCanvas.Canvas
::item-created
.)
Property Details¶
- GooCanvas.CanvasPathModel.props.data¶
-
The sequence of path commands
- GooCanvas.CanvasPathModel.props.height¶
-
The height of the path
- GooCanvas.CanvasPathModel.props.width¶
-
The width of the path
- GooCanvas.CanvasPathModel.props.x¶
-
The x coordinate of the path