GooCanvas.CanvasRect¶
- Subclasses:
None
Methods¶
- Inherited:
GooCanvas.CanvasItemSimple (9), GObject.Object (37), GooCanvas.CanvasItem (48)
- Structs:
Virtual Methods¶
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The height of the rectangle |
||
r/w |
The horizontal radius to use for rounded corners |
||
r/w |
The vertical radius to use for rounded corners |
||
r/w |
The width of the rectangle |
||
r/w |
The x coordinate of the rectangle |
||
r/w |
The y coordinate of the rectangle |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
||
rect_data |
r |
Class Details¶
- class GooCanvas.CanvasRect(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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 theGooCanvas.CanvasItem
functions such asGooCanvas.CanvasItem.raise_
() andGooCanvas.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¶
-
The height of the rectangle
- GooCanvas.CanvasRect.props.radius_x¶
-
The horizontal radius to use for rounded corners
- GooCanvas.CanvasRect.props.radius_y¶
-
The vertical radius to use for rounded corners
- GooCanvas.CanvasRect.props.width¶
-
The width of the rectangle
- GooCanvas.CanvasRect.props.x¶
-
The x coordinate of the rectangle