GooCanvas.CanvasEllipseModel

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.CanvasEllipseModel GooCanvas.CanvasEllipseModel GooCanvas.CanvasItemModel->GooCanvas.CanvasItemModelSimple GooCanvas.CanvasItemModelSimple->GooCanvas.CanvasEllipseModel

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

center-x

float

r/w

The x coordinate of the center of the ellipse

center-y

float

r/w

The y coordinate of the center of the ellipse

height

float

r/w

The height of the ellipse

radius-x

float

r/w

The horizontal radius of the ellipse

radius-y

float

r/w

The vertical radius of the ellipse

width

float

r/w

The width of the ellipse

x

float

r/w

The x coordinate of the left side of the ellipse

y

float

r/w

The y coordinate of the top of the ellipse

Signals

Inherited:

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

Fields

Inherited:

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

Name

Type

Access

Description

ellipse_data

GooCanvas.CanvasEllipseData

r

parent_object

GooCanvas.CanvasItemModelSimple

r

Class Details

class GooCanvas.CanvasEllipseModel(**kwargs)
Bases:

GooCanvas.CanvasItemModelSimple

Abstract:

No

Structure:

GooCanvas.CanvasEllipseModelClass

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 the GooCanvas.CanvasItemModel functions such as GooCanvas.CanvasItemModel.raise_() and GooCanvas.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. (See GooCanvas.Canvas.get_item() and GooCanvas.Canvas ::item-created.)

Property Details

GooCanvas.CanvasEllipseModel.props.center_x
Name:

center-x

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The x coordinate of the center of the ellipse

GooCanvas.CanvasEllipseModel.props.center_y
Name:

center-y

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The y coordinate of the center of the ellipse

GooCanvas.CanvasEllipseModel.props.height
Name:

height

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The height of the ellipse

GooCanvas.CanvasEllipseModel.props.radius_x
Name:

radius-x

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The horizontal radius of the ellipse

GooCanvas.CanvasEllipseModel.props.radius_y
Name:

radius-y

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The vertical radius of the ellipse

GooCanvas.CanvasEllipseModel.props.width
Name:

width

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The width of the ellipse

GooCanvas.CanvasEllipseModel.props.x
Name:

x

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The x coordinate of the left side of the ellipse

GooCanvas.CanvasEllipseModel.props.y
Name:

y

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The y coordinate of the top of the ellipse