GooCanvas.CanvasRectModel

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.CanvasRectModel GooCanvas.CanvasRectModel GooCanvas.CanvasItemModelSimple->GooCanvas.CanvasRectModel

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

height

float

r/w

The height of the rectangle

radius-x

float

r/w

The horizontal radius to use for rounded corners

radius-y

float

r/w

The vertical radius to use for rounded corners

width

float

r/w

The width of the rectangle

x

float

r/w

The x coordinate of the rectangle

y

float

r/w

The y coordinate of the rectangle

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

rect_data

GooCanvas.CanvasRectData

r

Class Details

class GooCanvas.CanvasRectModel(**kwargs)
Bases:

GooCanvas.CanvasItemModelSimple

Abstract:

No

Structure:

GooCanvas.CanvasRectModelClass

GooCanvas.CanvasRectModel represents a model for rectangle 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.CanvasRectModel use goo_canvas_rect_model_new().

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

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

Property Details

GooCanvas.CanvasRectModel.props.height
Name:

height

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The height of the rectangle

GooCanvas.CanvasRectModel.props.radius_x
Name:

radius-x

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The horizontal radius to use for rounded corners

GooCanvas.CanvasRectModel.props.radius_y
Name:

radius-y

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The vertical radius to use for rounded corners

GooCanvas.CanvasRectModel.props.width
Name:

width

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The width of the rectangle

GooCanvas.CanvasRectModel.props.x
Name:

x

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The x coordinate of the rectangle

GooCanvas.CanvasRectModel.props.y
Name:

y

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The y coordinate of the rectangle