GooCanvas.CanvasEllipseModel¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The x coordinate of the center of the ellipse |
||
r/w |
The y coordinate of the center of the ellipse |
||
r/w |
The height of the ellipse |
||
r/w |
The horizontal radius of the ellipse |
||
r/w |
The vertical radius of the ellipse |
||
r/w |
The width of the ellipse |
||
r/w |
The x coordinate of the left side of the ellipse |
||
r/w |
The y coordinate of the top of the ellipse |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
ellipse_data |
r |
||
parent_object |
r |
Class Details¶
- class GooCanvas.CanvasEllipseModel(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
GooCanvas.CanvasEllipseModel
represents a model for ellipse items.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.CanvasEllipseModel
use goo_canvas_ellipse_model_new().To get or set the properties of an existing
GooCanvas.CanvasEllipseModel
, use g_object_get() and g_object_set().The ellipse can be specified either with the “center-x”, “center-y”, “radius-x” and “radius-y” properties, or with the “x”, “y”, “width” and “height” properties.
To respond to events such as mouse clicks on the ellipse you must connect to the signal handlers of the corresponding
GooCanvas.CanvasEllipse
objects. (SeeGooCanvas.Canvas.get_item
() andGooCanvas.Canvas
::item-created
.)
Property Details¶
- GooCanvas.CanvasEllipseModel.props.center_x¶
-
The x coordinate of the center of the ellipse
- GooCanvas.CanvasEllipseModel.props.center_y¶
-
The y coordinate of the center of the ellipse
- GooCanvas.CanvasEllipseModel.props.height¶
-
The height of the ellipse
- GooCanvas.CanvasEllipseModel.props.radius_x¶
-
The horizontal radius of the ellipse
- GooCanvas.CanvasEllipseModel.props.radius_y¶
-
The vertical radius of the ellipse
- GooCanvas.CanvasEllipseModel.props.width¶
-
The width of the ellipse
- GooCanvas.CanvasEllipseModel.props.x¶
-
The x coordinate of the left side of the ellipse