GooCanvas.CanvasRect

g GObject.GInterface GObject.GInterface GooCanvas.CanvasItem GooCanvas.CanvasItem GObject.GInterface->GooCanvas.CanvasItem GObject.Object GObject.Object GooCanvas.CanvasItemSimple GooCanvas.CanvasItemSimple GObject.Object->GooCanvas.CanvasItemSimple GooCanvas.CanvasItem->GooCanvas.CanvasItemSimple GooCanvas.CanvasRect GooCanvas.CanvasRect GooCanvas.CanvasItemSimple->GooCanvas.CanvasRect

Subclasses:

None

Methods

Inherited:

GooCanvas.CanvasItemSimple (9), GObject.Object (37), GooCanvas.CanvasItem (48)

Structs:

GObject.ObjectClass (5)

Virtual Methods

Inherited:

GooCanvas.CanvasItemSimple (4), GObject.Object (7), GooCanvas.CanvasItem (44)

Properties

Inherited:

GooCanvas.CanvasItemSimple (23), GooCanvas.CanvasItem (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.CanvasItem (14)

Fields

Inherited:

GObject.Object (1), GooCanvas.CanvasItem (14)

Name

Type

Access

Description

parent

GooCanvas.CanvasItemSimple

r

rect_data

GooCanvas.CanvasRectData

r

Class Details

class GooCanvas.CanvasRect(**kwargs)
Bases:

GooCanvas.CanvasItemSimple

Abstract:

No

Structure:

GooCanvas.CanvasRectClass

GooCanvas.CanvasRect represents a rectangle item.

It is a subclass of GooCanvas.CanvasItemSimple and so inherits all of the style properties such as “stroke-color”, “fill-color” and “line-width”.

It also implements the GooCanvas.CanvasItem interface, so you can use the GooCanvas.CanvasItem functions such as GooCanvas.CanvasItem.raise_() and GooCanvas.CanvasItem.rotate().

To create a GooCanvas.CanvasRect use goo_canvas_rect_new().

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

Property Details

GooCanvas.CanvasRect.props.height
Name:

height

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The height of the rectangle

GooCanvas.CanvasRect.props.radius_x
Name:

radius-x

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The horizontal radius to use for rounded corners

GooCanvas.CanvasRect.props.radius_y
Name:

radius-y

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The vertical radius to use for rounded corners

GooCanvas.CanvasRect.props.width
Name:

width

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The width of the rectangle

GooCanvas.CanvasRect.props.x
Name:

x

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The x coordinate of the rectangle

GooCanvas.CanvasRect.props.y
Name:

y

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The y coordinate of the rectangle